mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 15:19:59 +07:00
forbid access to package local statics via inheritance from another package (IDEA-66493)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user