Method reference overload kind causing assertion error in javac

XMLWordPrintable

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

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


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

              Created:
              Updated:
              Resolved: