mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 02:54:35 +02:00
6695379: Copy method annotations and parameter annotations to synthetic bridge methods
Reviewed-by: mcimadamore
This commit is contained in:
parent
0ace868fe4
commit
7ab7587227
7 changed files with 155 additions and 21 deletions
|
@ -22,8 +22,6 @@
|
|||
*/
|
||||
|
||||
import java.io.*;
|
||||
import java.util.*;
|
||||
import java.net.*;
|
||||
import java.lang.reflect.*;
|
||||
|
||||
/**
|
||||
|
@ -250,7 +248,7 @@ public class ReflectionVisitor extends Tester.Visitor {
|
|||
String expect = m.isSynthetic() ? ("arg" + i) : ((++c) + param);
|
||||
param = p.getName();
|
||||
sb.append(sep).append(param);
|
||||
if (!expect.equals(param)) {
|
||||
if (!m.isBridge() && !expect.equals(param)) {
|
||||
error(prefix + "param[" + i + "]='"
|
||||
+ param + "' expected '" + expect + "'");
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue