Community
Participate
Working Groups
Using build I20060322-1335. Here's my test case test/Test.java package test; public class Test { public class Level0 { public class Level1 {} } } test/X.java package test; public class X { } I'm editing X and I want to add fields using completion package test; public class X { Test.L| } I got one proposal: "Level0 - test.Test" => OK Select it and insert, I got following code: package test; import test.Test.Level0; public class X { Test.Level0 } I continue to finish my field declaration and fix compiler error: package test; import test.Test.Level0; public class X { Test.Level0 level0; } Now I get an "Unused import" warning on the import line. I remove it and compiler does not complain (correct). So, I would expect not to have the unnecessary import added while doing this scenario...
Martin, I think this is the same problem as bug 131705.
*** This bug has been marked as a duplicate of 131705 ***