paulk-asert opened a new pull request, #3359:
URL: https://github.com/apache/groovy/pull/3359

   On 6.0.x, keep the part of the fix that only accepts code 6.0.0 rejected: a 
method reference passed under static compilation for a parameter declared with 
a type parameter, such as E of List.add(E), is compiled for the functional 
interface the call binds it to.
   
   Leave out what changes code that compiled in 6.0.0, so the design can be 
settled for Groovy 7:
   - the incubating groovy.target.lambda.typearg option and its 
CompilerConfiguration constant: a lambda for such a parameter is compiled as a 
closure, as in 6.0.0
   - the operator operand path: list << String::trim stores a closure, as in 
6.0.0, which also removes the compiler crash for list << (String s) -> s.trim() 
under the option
   
   We could potentially bring more of 10979 into 6 but we need to think through 
a little more and avoid some of the breakages and compiler crashes.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to