RFR (XS) 8207944: java.lang.ClassFormatError: Extra bytes at the end of class file test" possibly violation of JVMS 4.7.1

Harold David Seigel harold.seigel at oracle.com
Thu Jul 26 17:05:24 UTC 2018


Please review this JDK-11 fix for bug JDK-8207944.  The fix adds 
necessary handling of unknown attributes when the class file version >= 
JAVA_11_VERSION.  Without this fix, the class file bytes for those 
attributes do not get skipped over when parsing the class file, 
corrupting further parsing of the class file.

Open Webrev: http://cr.openjdk.java.net/~hseigel/bug_8207944_11/webrev/

JBS Bug:  https://bugs.openjdk.java.net/browse/JDK-8207944

This fix was regression tested by running JCK Lang and VM tests on 
Linux-x64 and by running the new test.  Testing that consists of running 
Mach5 tiers 1 and 2 tests and builds on Linux-X64, Windows, Solaris 
Sparc, and Mac OS X, and running tiers 3-5 tests on Linux-x64, is in 

Thanks, Harold

More information about the hotspot-runtime-dev mailing list