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

David Holmes david.holmes at oracle.com
Mon Jul 30 06:47:07 UTC 2018

Thanks for fixing this nestmates-induced bug Harold!


On 27/07/2018 3:05 AM, Harold David Seigel wrote:
> Hi,
> 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 
> progress.
> Thanks, Harold

More information about the hotspot-runtime-dev mailing list