JDK-8268099 : Release Note: Remove Vestiges of Intermediate JSR 175 Annotation Format
  • Type: Sub-task
  • Component: core-libs
  • Sub-Component: java.lang:reflect
  • Affected Version: 17
  • Priority: P4
  • Status: Closed
  • Resolution: Delivered
  • Submitted: 2021-06-02
  • Updated: 2021-12-02
  • Resolved: 2021-12-02
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 17
17Resolved
Description
When annotations were added to the platform in Java SE 5.0, early builds used a different representation of annotations in the class file than the final format. Support for this intermediate format has now been removed. Reading an annotation from a class file using the intermediate format which differs from the final format yields an exception similar to:

`java.lang.reflect.GenericSignatureFormatError: Signature Parse error: Expected Field Type Signature`

Recompiling the sources or otherwise regenerating the class file to conform to the proper format will resolve the issue.
Comments
When annotations were added to the platform in Java SE 5.0, early builds used a different representation of annotations in the class file than the final format. The support for this intermediate format has now been removed. Reading an annotation from a class file using the intermediate format where it differs from the final format will yield an exception like: java.lang.reflect.GenericSignatureFormatError: Signature Parse error: Expected Field Type Signature Recompiling the sources to produce an updated class file will resolve the issue.
21-07-2021