JDK-8057685 : javac should not crash compiling type annotations
  • Type: Sub-task
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 9
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2014-09-05
  • Updated: 2016-01-06
  • Resolved: 2015-10-23
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 b89Fixed
Related Reports
Duplicate :  
Description
javac should not crash compiling type annotations

This causes the following test to be ignored:
test/tools/javac/annotations/typeAnnotations/newlocations/AllLocations.java
Comments
Once I fix that problem, compilation proceeds past that point, but later on crashes while compiling a different snippet: (the present crash was precluded/masked by the earlier crash which stands fixed in workspace) import java.util.function.Function; @java.lang.annotation.Target({java.lang.annotation.ElementType.TYPE_USE}) @interface A { } public class X { public static Function func(Function f) { return f; } { func((@A Object a) -> { @A Object b = a; return b; }); } }
22-10-2015

Minimal test case: @java.lang.annotation.Target({java.lang.annotation.ElementType.TYPE_USE}) @interface A { } public class X { { new <@A X> X() {}; } }
22-10-2015