JDK-8213103 : RoundEnvironment.getElementsAnnotatedWith(Class) crashes with -source 8
  • Type: Bug
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 12
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2018-10-29
  • Updated: 2018-11-08
  • Resolved: 2018-11-05
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 12
12 b19Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Description
The RoundEnvironment.getElementsAnnotatedWith(Class) method may crash if:
- -source 8 is used
-the annotation provided cannot be resolved on the javac's classpath

A testcase is attached.
Comments
Recent change to that functionality: JDK-8190886.
29-10-2018