Skip to content

Commit 3531ed7

Browse files
committed
Raise ClassLoaderWeavingAdaptor::defineClass visibility to protected
Relates to eclipse-aspectj/ajdt#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 <[email protected]>
1 parent b16525c commit 3531ed7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

loadtime/src/main/java/org/aspectj/weaver/loadtime/ClassLoaderWeavingAdaptor.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1225,11 +1225,11 @@ public Class<?> loadClass(String name) throws ClassNotFoundException {
12251225
}
12261226
}
12271227

1228-
private void defineClass(ClassLoader loader, String name, byte[] bytes) {
1228+
protected void defineClass(ClassLoader loader, String name, byte[] bytes) {
12291229
defineClass(loader, name, bytes, null);
12301230
}
12311231

1232-
private void defineClass(ClassLoader loader, String name, byte[] bytes, ProtectionDomain protectionDomain) {
1232+
protected void defineClass(ClassLoader loader, String name, byte[] bytes, ProtectionDomain protectionDomain) {
12331233
if (trace.isTraceEnabled())
12341234
trace.enter("defineClass", this, new Object[] { loader, name, bytes });
12351235
debug("generating class '" + name + "'");

0 commit comments

Comments
 (0)