JDK-8235149 : javac parser is too aggressive on ambiguous expressions using identifier: record
  • Type: Bug
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 14,15
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2019-11-30
  • Updated: 2020-02-04
  • Resolved: 2020-01-27
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 15
15 b08Fixed
Related Reports
Relates :  
Description
this code fails even if preview features are not enabled:

class X {
    record R(int i) {
        return null;
    }
}
class record {}
Comments
URL: https://hg.openjdk.java.net/jdk/jdk/rev/ebce016b7358 User: vromero Date: 2020-01-27 23:50:54 +0000
27-01-2020