forbid access to package local statics via inheritance from another package (IDEA-66493)

This commit is contained in:
anna
2013-07-17 16:23:26 +02:00
parent 915fddf648
commit 650fdb9ff1
5 changed files with 33 additions and 1 deletions

View File

@@ -148,7 +148,7 @@ public class JavaResolveUtil {
}
if (!facade.arePackagesTheSame(member, place)) return false;
if (modifierList.hasModifierProperty(PsiModifier.STATIC)) return true;
//if (modifierList.hasModifierProperty(PsiModifier.STATIC)) return true;
// maybe inheritance lead through package local class in other package ?
final PsiClass placeClass = getContextClass(place);
if (memberClass == null || placeClass == null) return true;