mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-19 18:44:38 +02:00
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:
parent
1be81e358c
commit
33a3e1add3
5 changed files with 21 additions and 19 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue