Skip to content

Commit

Permalink
Fix ClassCircularityError when running with security manager (open-te…
Browse files Browse the repository at this point in the history
  • Loading branch information
laurit authored and RashmiRam committed May 23, 2022
1 parent b1aa130 commit c459fd5
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ private static void configureIgnoredTypes(IgnoredTypesBuilder builder) {
.allowClass("java.util.concurrent.")
.allowClass("java.lang.reflect.Proxy")
.allowClass("java.lang.ClassLoader")
// Ignore inner classes of ClassLoader to avoid
// java.lang.ClassCircularityError: java/lang/ClassLoader$1
// when SecurityManager is enabled. ClassLoader$1 is used in ClassLoader.checkPackageAccess
.ignoreClass("java.lang.ClassLoader$")
.allowClass("java.lang.invoke.InnerClassLambdaMetafactory")
// Concurrent instrumentation modifies the structure of
// Cleaner class incompatibly with java9+ modules.
Expand Down

0 comments on commit c459fd5

Please sign in to comment.