8037546: javac -parameters does not emit parameter names for lambda expressions

MethodParameters attribute is missing for synthetic methods encoding lambda expressions.

Reviewed-by: rfield, mcimadamore
This commit is contained in:
Srikanth Adayapalam 2015-01-13 10:25:24 +01:00 committed by Jan Lahoda
parent 1be81e358c
commit 33a3e1add3
5 changed files with 21 additions and 19 deletions

View file

@ -277,7 +277,7 @@ public class ReflectionVisitor extends Tester.Visitor {
param = "final " + param;
}
sb.append(sep).append(param);
if (!m.isBridge() && !expect.equals(param)) {
if (!m.isBridge() && !m.getName().startsWith("lambda$") && !expect.equals(param)) {
error(prefix + "param[" + i + "]='"
+ param + "' expected '" + expect + "'");
break;