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

Javac crashes when multiple lambdas are defined in an array

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2
    • 8
    • 8, 8-repo-lambda
    • tools
    • b87
    • Verified

    Description

      This program crashes javac:

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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: