Details
-
Bug
-
Resolution: Fixed
-
P5
-
8
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.
"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.