Javac crashes when multiple lambdas are defined in an array

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P2
    • 8
    • Affects Version/s: 8, 8-repo-lambda
    • Component/s: tools
    • b87
    • Verified

      This program crashes javac:

      class Lambda {
          public static void main(String[] args) throws Throwable {
              Runnable[] rs = { () -> { String x = null; }, () -> { String x = null; } };
          }
      }

            Assignee:
            Maurizio Cimadamore
            Reporter:
            Maurizio Cimadamore
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: