langtools/src/share/classes/com/sun/tools/javac/comp/Resolve.java
changeset 3372 544ec1ab333c
parent 3143 0413d5b5b7fd
child 5321 c8efe769cb3b
equal deleted inserted replaced
3156:697fb30982e5 3372:544ec1ab333c
   249     private boolean notOverriddenIn(Type site, Symbol sym) {
   249     private boolean notOverriddenIn(Type site, Symbol sym) {
   250         if (sym.kind != MTH || sym.isConstructor() || sym.isStatic())
   250         if (sym.kind != MTH || sym.isConstructor() || sym.isStatic())
   251             return true;
   251             return true;
   252         else {
   252         else {
   253             Symbol s2 = ((MethodSymbol)sym).implementation(site.tsym, types, true);
   253             Symbol s2 = ((MethodSymbol)sym).implementation(site.tsym, types, true);
   254             return (s2 == null || s2 == sym);
   254             return (s2 == null || s2 == sym ||
       
   255                     !types.isSubSignature(types.memberType(site, s2), types.memberType(site, sym)));
   255         }
   256         }
   256     }
   257     }
   257     //where
   258     //where
   258         /** Is given protected symbol accessible if it is selected from given site
   259         /** Is given protected symbol accessible if it is selected from given site
   259          *  and the selection takes place in given class?
   260          *  and the selection takes place in given class?