src/share/classes/com/sun/tools/javac/comp/Resolve.java

changeset 795
7b99f98b3035
parent 789
878c8f760ded
child 798
4868a36f6fd8
     1.1 --- a/src/share/classes/com/sun/tools/javac/comp/Resolve.java	Mon Dec 13 14:08:01 2010 -0800
     1.2 +++ b/src/share/classes/com/sun/tools/javac/comp/Resolve.java	Mon Dec 13 15:11:00 2010 -0800
     1.3 @@ -815,13 +815,13 @@
     1.4      }
     1.5      //where
     1.6      private boolean signatureMoreSpecific(Env<AttrContext> env, Type site, Symbol m1, Symbol m2, boolean allowBoxing, boolean useVarargs) {
     1.7 +        noteWarner.clear();
     1.8          Type mtype1 = types.memberType(site, adjustVarargs(m1, m2, useVarargs));
     1.9 -        noteWarner.unchecked = false;
    1.10          return (instantiate(env, site, adjustVarargs(m2, m1, useVarargs), types.lowerBoundArgtypes(mtype1), null,
    1.11                               allowBoxing, false, noteWarner) != null ||
    1.12                   useVarargs && instantiate(env, site, adjustVarargs(m2, m1, useVarargs), types.lowerBoundArgtypes(mtype1), null,
    1.13                                             allowBoxing, true, noteWarner) != null) &&
    1.14 -                !noteWarner.unchecked;
    1.15 +                !noteWarner.hasLint(Lint.LintCategory.UNCHECKED);
    1.16      }
    1.17      //where
    1.18      private Symbol adjustVarargs(Symbol to, Symbol from, boolean useVarargs) {

mercurial