Skip to content

Commit

Permalink
Raise ClassLoaderWeavingAdaptor::defineClass visibility to protected
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
kriegaex committed Apr 4, 2024
1 parent b16525c commit 3531ed7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1225,11 +1225,11 @@ public Class<?> loadClass(String name) throws ClassNotFoundException {
}
}

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 + "'");
Expand Down

0 comments on commit 3531ed7

Please sign in to comment.