diff -r 37fa8cd046ab -r 04cf82179fa7 src/share/classes/com/sun/tools/javac/comp/Infer.java --- a/src/share/classes/com/sun/tools/javac/comp/Infer.java Sat Apr 17 08:12:45 2010 -0700 +++ b/src/share/classes/com/sun/tools/javac/comp/Infer.java Wed Apr 21 12:24:56 2010 +0100 @@ -287,7 +287,8 @@ /** Instantiate method type `mt' by finding instantiations of * `tvars' so that method can be applied to `argtypes'. */ - public Type instantiateMethod(List tvars, + public Type instantiateMethod(final Env env, + List tvars, MethodType mt, final List argtypes, final boolean allowBoxing, @@ -416,6 +417,9 @@ // check that inferred bounds conform to their bounds checkWithinBounds(all_tvars, types.subst(inferredTypes, tvars, inferred), warn); + if (useVarargs) { + chk.checkVararg(env.tree.pos(), formals); + } return super.inst(inferred, types); }}; return mt2;