Following pseudocode sums up my question pretty well I think...
class Owner { Bar b = new Bar(); dostuff(){...} } class Bar { Bar() {
class Owner { Bar b = new Bar(this); dostuff(){...} } class Bar { Bar(Owner owner) { owner.doStuff(); } }
I think the way you have written the code, it is not possible to do. But if you declare Bar as inner class of Owner, you might get a closer solution.