6695379: Copy method annotations and parameter annotations to synthetic bridge methods

Reviewed-by: mcimadamore
This commit is contained in:
Vicente Romero 2013-06-01 22:09:18 +01:00
parent 0ace868fe4
commit 7ab7587227
7 changed files with 155 additions and 21 deletions

View file

@ -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;