Community
Participate
Working Groups
Using 3.2M2, from bug 104879, package xy; import java.util.ArrayList; public class LocalTest { void m() { class Local { Local fSelf; } new ArrayList().add(new Local().fSelf); } } The refactoring 'Infer Generic Type Arguments' on the submitted test case generates a code that doesn't compile. I get: package xy; import java.util.ArrayList; import xy.LocalTest.98.Local; public class LocalTest { void m() { class Local { Local fSelf; } new ArrayList<Local>().add(new Local().fSelf); } } The import statement is invalid.
Oops, sorry. I have forgotten to mention in bug 104879 that I already filed bug 109059 for this problem. Marking as dup. *** This bug has been marked as a duplicate of 109059 ***