Skip to content

Commit

Permalink
Include JDK system classes in muzzle build-time checks, so types like…
Browse files Browse the repository at this point in the history
… java.net.http.HttpRequest are visible when checking against Java11 (#4920)
  • Loading branch information
mcculls authored and ValentinZakharov committed Mar 28, 2023
1 parent 2912105 commit 951a81c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion buildSrc/src/main/groovy/MuzzlePlugin.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,7 @@ abstract class MuzzleAction implements WorkAction<MuzzleWorkParameters> {
assertionMethod.invoke(null, instCL, testCL, assertPass, muzzleDirective)
}

static ClassLoader createClassLoader(cp, parent = null) {
static ClassLoader createClassLoader(cp, parent = ClassLoader.systemClassLoader) {
return new URLClassLoader(cp*.toURI()*.toURL() as URL[], parent as ClassLoader)
}
}

0 comments on commit 951a81c

Please sign in to comment.