mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-26 19:06:24 +07:00
Correctly handle removal of 'protected' access flag on fields (IDEA-184854);
Fix InheritanceConstraint: when member access is changed to protected or package-private, more precise calculation of affected files
This commit is contained in:
+8
@@ -0,0 +1,8 @@
|
||||
package ppp;
|
||||
import qqq.*;
|
||||
|
||||
class D {
|
||||
void f (A a) {
|
||||
a.f();
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
package qqq;
|
||||
|
||||
public class A {
|
||||
public void f (){
|
||||
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
package qqq;
|
||||
|
||||
public class A {
|
||||
protected void f() {
|
||||
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
package qqq;
|
||||
|
||||
class B {
|
||||
void f (A a) {
|
||||
a.f();
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
package qqq;
|
||||
|
||||
class C extends A {
|
||||
void g(){
|
||||
f();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user