RFR: JDK-8204674: Inconsistent lambda parameter span

Maurizio Cimadamore maurizio.cimadamore at oracle.com
Mon Jun 11 11:42:31 UTC 2018


Looks good

Maurizio


On 11/06/18 12:31, Jan Lahoda wrote:
> Hi,
>
> There are a few cases where the positions for lambda parameters seem 
> to be not ideal:
>
> java.util.function.IntBinaryOperator c = (var x, testType) -> 1;
>
> The span for the "var x" variable does not include "var". The span of 
> "testType" does not include "testType" after attribution.
>
> The proposed patch tweaks the code to provide more consistent positions.
>
> Bug: https://bugs.openjdk.java.net/browse/JDK-8204674
> Webrev: http://cr.openjdk.java.net/~jlahoda/8204674/webrev.00/
>
> How does this look?
>
> Thanks,
>     Jan



More information about the compiler-dev mailing list