Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8210862

Method reference overload kind causing assertion error in javac

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Duplicate
    • Affects Version/s: 11, 12
    • Fix Version/s: 12
    • Component/s: tools
    • Labels:

      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));


        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                vromero Vicente Arturo Romero Zaldivar
                Reporter:
                mtrudeau Michel Trudeau
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: