DRY-181: Implement details on access to protected member (6.6.2.1)
package a;
public class A {
protected int x;
}package b;
public class B extends a.A {
void f(c.C c) {
c.x = 5;
}
}package c;
public class C extends b.B {
}package c;
public class C2 extends b.B {
void f(b.B b) {
b.x = 5;
}
}The access of x in B is valid.
The access of x in C2 is not.
Submitted on 5 December 2005 at 16:15
Issue Log
On 5 December 2005 at 16:24 Jira commented:
DRY-181, martin:
This restriction does not seem to be applicable to static members.
Log in to post comments