4.3.1: Lambdas and method refs can implicitly create new objects

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P5
    • 9
    • Affects Version/s: 8
    • Component/s: specification

      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.

            Assignee:
            Alex Buckley
            Reporter:
            Dan Smith
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: