Article ID: 156912
Article Last Modified on 5/12/2007
// aProtectedPackage.myBaseClass
package aProtectedPackage;
public class myBaseClass {
protected int myProtectedVariable;
}
// derivedClass
import aProtectedPackage.myBaseClass;
class derivedClass extends myBaseClass {
void test(myBaseClass a) {
this.myProtectedVariable=1;
a.myProtectedVariable=0; // this should generate an error
// according to 6.6.2, but JVC does not
// generate any warnings.
}
}
Keywords: kbbug kbcommandline kbfix kbvj110fix KB156912