diff options
author | Alexander Kriegisch <Alexander@Kriegisch.name> | 2024-04-04 12:51:58 +0200 |
---|---|---|
committer | Alexander Kriegisch <Alexander@Kriegisch.name> | 2024-04-04 12:51:58 +0200 |
commit | 3531ed77f519d4e45b9a41abe2293349e0ede6e6 (patch) | |
tree | 050840cbf912e43ad5d50e7fc9e382df758a55f9 /loadtime | |
parent | b16525c0043906c20b7bb82157387c45bc136c52 (diff) | |
download | aspectj-3531ed77f519d4e45b9a41abe2293349e0ede6e6.tar.gz aspectj-3531ed77f519d4e45b9a41abe2293349e0ede6e6.zip |
Raise ClassLoaderWeavingAdaptor::defineClass visibility to protected
Relates to https://github.com/eclipse-aspectj/ajdt/issues/57 and it a
precondition for refactoring phase 2 of child class
OSGiWeavingAdaptor::defineClass, which can now directly call the super
methods instead of using reflection.
Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
Diffstat (limited to 'loadtime')
-rw-r--r-- | loadtime/src/main/java/org/aspectj/weaver/loadtime/ClassLoaderWeavingAdaptor.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/loadtime/src/main/java/org/aspectj/weaver/loadtime/ClassLoaderWeavingAdaptor.java b/loadtime/src/main/java/org/aspectj/weaver/loadtime/ClassLoaderWeavingAdaptor.java index d0484f6b4..a18400e90 100644 --- a/loadtime/src/main/java/org/aspectj/weaver/loadtime/ClassLoaderWeavingAdaptor.java +++ b/loadtime/src/main/java/org/aspectj/weaver/loadtime/ClassLoaderWeavingAdaptor.java @@ -1225,11 +1225,11 @@ public class ClassLoaderWeavingAdaptor extends WeavingAdaptor { } } - private void defineClass(ClassLoader loader, String name, byte[] bytes) { + protected void defineClass(ClassLoader loader, String name, byte[] bytes) { defineClass(loader, name, bytes, null); } - private void defineClass(ClassLoader loader, String name, byte[] bytes, ProtectionDomain protectionDomain) { + protected void defineClass(ClassLoader loader, String name, byte[] bytes, ProtectionDomain protectionDomain) { if (trace.isTraceEnabled()) trace.enter("defineClass", this, new Object[] { loader, name, bytes }); debug("generating class '" + name + "'"); |