Review Request JDK-8218419: Can't get annotations that are present on packages in -Xbootclasspath/a

Alan Bateman Alan.Bateman at oracle.com
Wed Feb 6 08:31:21 UTC 2019


On 05/02/2019 23:10, Mandy Chung wrote:
> BootClassLoader mistakenly overrides the 1-arg loadClassOrNull method
> instead of the 2-arg loadClassOrNull method.  A class defined to
> the bootstrap class loader is intended to call JVM entry point
> to find such class rather than ClassLoader::defineClass method
> via the implementation-specific BootClassLoader instance.
> The patch is trivial; BootClassLoader overrides the two-arg
> loadClassOrNull instead.
>
> Webrev at:
> http://cr.openjdk.java.net/~mchung/jdk13/webrevs/8218419/webrev.00
Looks good. I assume it isn't too common to be loading the annotations 
of classes deployed with -Xbootclasspath/a which might explain why the 
issue has existed for several releases without anyone noticing.

-Alan


More information about the core-libs-dev mailing list