changeset 3025:2a035634dcb6

8073594: javac, before calling rawInstantiate from selectBest the warner should be cleared out Reviewed-by: jlahoda
author vromero
date Tue, 08 Sep 2015 11:59:25 -0700
parents c14eb253bdd8
children 2d65e99e2ae7
files src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Resolve.java
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Resolve.java	Tue Sep 08 11:53:17 2015 -0700
+++ b/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);