test/tools/javac/MethodParameters/ReflectionVisitor.java

changeset 1792
ec871c3e8337
parent 1791
e9855150c5b0
child 2137
a48d3b981083
     1.1 --- a/test/tools/javac/MethodParameters/ReflectionVisitor.java	Sat Jun 01 21:57:56 2013 +0100
     1.2 +++ b/test/tools/javac/MethodParameters/ReflectionVisitor.java	Sat Jun 01 22:09:18 2013 +0100
     1.3 @@ -22,8 +22,6 @@
     1.4   */
     1.5  
     1.6  import java.io.*;
     1.7 -import java.util.*;
     1.8 -import java.net.*;
     1.9  import java.lang.reflect.*;
    1.10  
    1.11  /**
    1.12 @@ -250,7 +248,7 @@
    1.13                  String expect =  m.isSynthetic() ? ("arg" + i) : ((++c) + param);
    1.14                  param = p.getName();
    1.15                  sb.append(sep).append(param);
    1.16 -                if (!expect.equals(param)) {
    1.17 +                if (!m.isBridge() && !expect.equals(param)) {
    1.18                      error(prefix + "param[" + i + "]='"
    1.19                            + param + "' expected '" + expect + "'");
    1.20                      break;

mercurial