RFR: JDK-8245432: Lookup::defineHiddenClass should throw UnsupportedClassVersionError if the given bytes are of an unsupported major or minor version

Mandy Chung mandy.chung at oracle.com
Tue May 26 21:46:12 UTC 2020


Lookup::defineHiddenClass currently throws IAE by ASM if the given bytes 
are of unsupported class file version.  The implementation should catch 
and throw UnsupportedClassVersionError instead.

webrev:
http://cr.openjdk.java.net/~mchung/jdk15/webrevs/8245432/webrev.00/

This patch also includes a spec clarification of @throws IAE if the
the bytes has ACC_MODULE flag set to fix JDK-8245596.

thanks
Mandy


More information about the core-libs-dev mailing list