Skip not decorator check for classes in boot loader (#8594)

This commit is contained in:
Lauri Tulmin 2023-05-30 12:23:16 +03:00 committed by GitHub
parent a1b30aacda
commit 45fbf4b47b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -116,7 +116,9 @@ public final class InstrumentationModuleInstaller {
classLoaderMatcher,
"Instrumentation class loader matcher unexpected exception: "
+ classLoaderMatcher))
.and(NOT_DECORATOR_MATCHER)
.and(
(typeDescription, classLoader, module, classBeingRedefined, protectionDomain) ->
classLoader == null || NOT_DECORATOR_MATCHER.matches(typeDescription))
.and(muzzleMatcher)
.transform(ConstantAdjuster.instance())
.transform(helperInjector);