8132806: javac does a naive implementation of some incorporation steps
authorvromero
Tue, 08 Sep 2015 10:36:44 -0700
changeset 32543 f60b1725a83f
parent 32542 f4e4f4c4f9f4
child 32544 53dd47cb1688
8132806: javac does a naive implementation of some incorporation steps 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	Fri Sep 04 13:24:15 2015 +0200
+++ b/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Resolve.java	Tue Sep 08 10:36:44 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);