Skip to content

Commit

Permalink
Support delay ExceptionInInitializerError.
Browse files Browse the repository at this point in the history
  • Loading branch information
nieyuanhong authored Oct 25, 2024
1 parent bbe0e07 commit d88ceb1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/javassist/runtime/Desc.java
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ private static Class<?> getClassObject(String name)
throws ClassNotFoundException
{
if (useContextClassLoader || USE_CONTEXT_CLASS_LOADER_LOCALLY.get())
return Class.forName(name, true, Thread.currentThread().getContextClassLoader());
return Class.forName(name);
return Class.forName(name, false, Thread.currentThread().getContextClassLoader());
return Class.forName(name, false, Desc.class.getClassLoader());
}

/**
Expand Down

0 comments on commit d88ceb1

Please sign in to comment.