JDK-8035763 : Error parsing binary type annotations data in javac.
  • Type: Bug
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 9
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2014-02-25
  • Updated: 2014-07-07
  • Resolved: 2014-05-10
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 9
9 b14Fixed
Related Reports
Relates :  
Description
JDK-8033004 accidentally changed the order in which binary attributes for type annotations are parsed, causing type paths to be parsed before local variable information.  This causes it to fail to parse some type annotations, namely the ones that have local variable information and type paths.
Comments
Original fix was contributed by Werner Dietl to type annotations: http://hg.openjdk.java.net/type-annotations/type-annotations/langtools/rev/7e9c983565ac. Current fix essentially copies that fix, as it was determined that writing a test is not feasible (see noreg-hard justification)
19-05-2014

noreg-hard justification: javac will never read annotations on code attributes, and will never generate local variable or resource variable annotations on anything BUT a code attribute. Thus, it is not possible to write a test without synthesizing arguably malformed class files.
10-05-2014