Eclipse subclass breakpoint



Anybody know how to set a breakpoint on a method in a superclass and
have break only in a specific subclass invocation?

class A {
void aMethod(){ < setbreakpoint w/ condition X
}

class B extends A{
}

class C extends A{
}
.....

B b = new B();
b.aMethod(); < break

C c = new C();
c.aMethod(); < no break

.



Relevant Pages

  • Re: Is method(super) legal?
    ... >> The superclass constructor can only be called from the subclass ... >> void m ... >> class B extends A ...
    (comp.lang.java.programmer)
  • Re: Reaching a indirect superclass
    ... > class b extends a { ... not the overriding b.xin the direct superclass. ... public void x{ ... final protected void ax ...
    (comp.lang.java.help)