ADDITIONAL SYSTEM INFORMATION :
Windows 7,10 and linux in Jdk/Opendk-11-ea+20
A DESCRIPTION OF THE PROBLEM :
When a none zero length unrecognized attribute is in a class version 55 for ea+20 it has a LinkageError of:
Error: LinkageError occurred while loading main class test
java.lang.ClassFormatError: Extra bytes at the end of class file test
REGRESSION : Last worked in version 11
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Have a class file marked for version 55 with a none zero length unrecognized attribute (See JVMS 4.7.1)
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The runtime will ignore the unrecognized attribute
ACTUAL -
Has a LinkageError:
Error: LinkageError occurred while loading main class test
java.lang.ClassFormatError: Extra bytes at the end of class file test
CUSTOMER SUBMITTED WORKAROUND :
Compile for JDK 10
FREQUENCY : always