8073594: javac, before calling rawInstantiate from selectBest the warner should be cleared out
authorvromero
Tue, 08 Sep 2015 11:59:25 -0700
changeset 32545 9c4c47640408
parent 32544 53dd47cb1688
child 32546 e695f47efdfc
8073594: javac, before calling rawInstantiate from selectBest the warner should be cleared out Reviewed-by: jlahoda
langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Resolve.java
--- a/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Resolve.java	Tue Sep 08 11:53:17 2015 -0700
+++ b/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Resolve.java	Tue Sep 08 11:59:25 2015 -0700
@@ -1436,6 +1436,7 @@
         }
         Assert.check(!sym.kind.isResolutionError());
         try {
+            types.noWarnings.clear();
             Type mt = rawInstantiate(env, site, sym, null, argtypes, typeargtypes,
                                allowBoxing, useVarargs, types.noWarnings);
             currentResolutionContext.addApplicableCandidate(sym, mt);