nb_
-
2005-01-16
- status: open --> open-accepted
Consider the following piece of code:
class P {
private void f() { }
}
class Z extends P {
public void f() {} // <--- Observation for rule 174
}
class X {
void g() {
new P() {
public void f() { } // <--- NO observation for
rule 174!
};
}
}
Anonymous inner class in method g() should also fire an
observation for this rule. Note this is probably a
problem in the WalkUp code of this rule where the anon
inner class is skipped.