Community
Participate
Working Groups
I20090426-2000 1. Create a java project with the following content (all in one file) class Context { private int value = 10; public abstract class Callback { public abstract void doit(int value); } } public class ContextTest { private Context context = new Context(); public void test() { Set foo = new HashSet(); // quickfix on errors above offer to import HashSet and Set. context.new Callback() { public void doit(int value) { Set foo = new HashSet(); // // quickfix on errors above DO NOT offer to import HashSet and Set. } }; } } 2. The compiler reports 4 errors: - Set cannot be resolved to a type - HashSet cannot be resolved to a type 3. As the comment in the code indicates, quickfix offers to import the needed types only in the first "Set foo = new HashSet();" and not in the other case.
We use code assist and convert the type proposal into the quick fix. If you invoke code assist at the problematic locations you will see that you don't get any proposals.
(In reply to comment #1) > We use code assist and convert the type proposal into the quick fix. If you > invoke code assist at the problematic locations you will see that you don't get > any proposals. I see. Thanks for clarifying. In that event, it would appear this bug is really another manifestation of bug# 132679.
*** This bug has been marked as a duplicate of bug 132679 ***
Verified for 3.5RC1 using I20090511-2000.