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

Mandy Chung mandy.chung at oracle.com
Tue Feb 5 23:10:27 UTC 2019


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

Thanks
Mandy


More information about the core-libs-dev mailing list