equal
deleted
inserted
replaced
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? |