I have the following java classes:
public class Outer {
...
private class Inner {
...
}
...
}
Assume I am inside a non-static method of Outer. Does it make a difference whether I call this.new Inner() or new Outer.Inner()? Is it, in the second case, guaranteed that no new Outer is created?
I have an annoying error in my program that appears only sometimes and is hard to find or to reproduce. So I am wondering if this line could make any problems.