]> source.dussan.org Git - aspectj.git/commitdiff
Raise ClassLoaderWeavingAdaptor::defineClass visibility to protected
authorAlexander Kriegisch <Alexander@Kriegisch.name>
Thu, 4 Apr 2024 10:51:58 +0000 (12:51 +0200)
committerAlexander Kriegisch <Alexander@Kriegisch.name>
Thu, 4 Apr 2024 10:51:58 +0000 (12:51 +0200)
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>
loadtime/src/main/java/org/aspectj/weaver/loadtime/ClassLoaderWeavingAdaptor.java

index d0484f6b405c35959c1aa8aa76fd3d5c50e6c402..a18400e9026d5bb29a159683a4a63ae57d04cf94 100644 (file)
@@ -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 + "'");