JDK-8210862 : Method reference overload kind causing assertion error in javac
  • Type: Bug
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 11,12
  • Priority: P3
  • Status: Resolved
  • Resolution: Duplicate
  • Submitted: 2018-09-18
  • Updated: 2018-09-18
  • Resolved: 2018-09-18
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
12Resolved
Related Reports
Duplicate :  
Description
The attached code sample causes an assertion error in javac starting with jdk 11

return Optional.of(BigInteger.valueOf(2L)).or(() -> one.map(i::subtract));



Comments
Regression introduced in 11 by https://bugs.openjdk.java.net/browse/JDK-8203679
18-09-2018

the bug can not be reproduced with current tip
18-09-2018