RFR: JDK-8204674: Inconsistent lambda parameter span
Jan Lahoda
jan.lahoda at oracle.com
Mon Jun 11 11:31:11 UTC 2018
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