equal
deleted
inserted
replaced
3212 } |
3212 } |
3213 |
3213 |
3214 result = checkId(tree, env1.enclClass.sym.type, sym, env, resultInfo); |
3214 result = checkId(tree, env1.enclClass.sym.type, sym, env, resultInfo); |
3215 } |
3215 } |
3216 |
3216 |
|
3217 /** Report dependencies. |
|
3218 * @param from The enclosing class sym |
|
3219 * @param to The found identifier that the class depends on. |
|
3220 */ |
|
3221 public void reportDependence(Symbol from, Symbol to) { |
|
3222 // Override if you want to collect the reported dependencies. |
|
3223 } |
|
3224 |
3217 public void visitSelect(JCFieldAccess tree) { |
3225 public void visitSelect(JCFieldAccess tree) { |
3218 // Determine the expected kind of the qualifier expression. |
3226 // Determine the expected kind of the qualifier expression. |
3219 int skind = 0; |
3227 int skind = 0; |
3220 if (tree.name == names._this || tree.name == names._super || |
3228 if (tree.name == names._this || tree.name == names._super || |
3221 tree.name == names._class) |
3229 tree.name == names._class) |
3339 chk.checkElemAccessFromSerializableLambda(tree); |
3347 chk.checkElemAccessFromSerializableLambda(tree); |
3340 } |
3348 } |
3341 |
3349 |
3342 env.info.selectSuper = selectSuperPrev; |
3350 env.info.selectSuper = selectSuperPrev; |
3343 result = checkId(tree, site, sym, env, resultInfo); |
3351 result = checkId(tree, site, sym, env, resultInfo); |
|
3352 |
|
3353 if ((tree.sym.kind & TYP) != 0) { |
|
3354 reportDependence(env.enclClass.sym, tree.sym); |
|
3355 } |
3344 } |
3356 } |
3345 //where |
3357 //where |
3346 /** Determine symbol referenced by a Select expression, |
3358 /** Determine symbol referenced by a Select expression, |
3347 * |
3359 * |
3348 * @param tree The select tree. |
3360 * @param tree The select tree. |