Hi,
I have a class A and write a subclass B. A has only one constructor which is parameterised. B has to call this super constructur of A. Now I want to use an Object as a parameter. This object should call a method of B. So the parameter-object has to hold a reference of B or has to be an inner class.
public B(){
super.(new parameter(this))
}
Now when I want to invoke the contructe like... Eclipse says:
Cannot refer to 'this' nor 'super' while explicitly invoking a constructor
The only thing I see to get around this, is a set-method, to inject the "this"-instance into the parameter object. I would not like to edit the super-class.
Do you see any better way around this.