1.1 --- a/src/share/classes/com/sun/tools/javac/comp/Infer.java Tue May 10 19:53:49 2011 -0700 1.2 +++ b/src/share/classes/com/sun/tools/javac/comp/Infer.java Wed May 11 13:10:57 2011 +0200 1.3 @@ -407,9 +407,7 @@ 1.4 1.5 // for varargs arguments as well 1.6 if (useVarargs) { 1.7 - //note: if applicability check is triggered by most specific test, 1.8 - //the last argument of a varargs is _not_ an array type (see JLS 15.12.2.5) 1.9 - Type elemType = types.elemtypeOrType(varargsFormal); 1.10 + Type elemType = types.elemtype(varargsFormal); 1.11 Type elemUndet = types.subst(elemType, tvars, undetvars); 1.12 while (actuals.nonEmpty()) { 1.13 Type actual = actuals.head.baseType();