Closed
Description
Affects: 5.1.5
In Java 11 ReflectUtils.defineClass()
uses the new MethodHandles.Lookup.defineClass()
, this method uses the contextClass
's classloader, instead of the loader
argument.
This difference in behaviour in Java 8 and Java 11 sometimes produces unexpected errors (eg. java.lang.LinkageError: attempted duplicate class definition)
Related issue #22310