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

4.3.1: Lambdas and method refs can implicitly create new objects

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P5
    • 9
    • 8
    • specification

    Description

      JLS 8 correctly updated 12.5 to include lambda expressions and method reference expressions in the list of things that can implicitly create objects.

      "Evaluation of a method reference expression (§15.13.3) or a lambda expression (§15.27.4) may require that a new instance of a class that implements a functional interface type be created."

      However, it failed to update a similar list in 4.3.1.

      Attachments

        Activity

          People

            abuckley Alex Buckley
            dlsmith Dan Smith
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: