3231 sitesym.name == names._super; |
3231 sitesym.name == names._super; |
3232 |
3232 |
3233 // Determine the symbol represented by the selection. |
3233 // Determine the symbol represented by the selection. |
3234 env.info.pendingResolutionPhase = null; |
3234 env.info.pendingResolutionPhase = null; |
3235 Symbol sym = selectSym(tree, sitesym, site, env, resultInfo); |
3235 Symbol sym = selectSym(tree, sitesym, site, env, resultInfo); |
|
3236 if (sym.kind == VAR && sym.name != names._super && env.info.defaultSuperCallSite != null) { |
|
3237 log.error(tree.selected.pos(), "not.encl.class", site.tsym); |
|
3238 sym = syms.errSymbol; |
|
3239 } |
3236 if (sym.exists() && !isType(sym) && pkind().contains(KindSelector.TYP_PCK)) { |
3240 if (sym.exists() && !isType(sym) && pkind().contains(KindSelector.TYP_PCK)) { |
3237 site = capture(site); |
3241 site = capture(site); |
3238 sym = selectSym(tree, sitesym, site, env, resultInfo); |
3242 sym = selectSym(tree, sitesym, site, env, resultInfo); |
3239 } |
3243 } |
3240 boolean varArgs = env.info.lastResolveVarargs(); |
3244 boolean varArgs = env.info.lastResolveVarargs(); |