Community
Participate
Working Groups
Let's say I have the following code: List<Object> list; list = new | The | represents where the caret is. If I hit Ctrl+Space to bring up Content Assist, then it displays some short list of classes (e.g. ArrayList). Some of the classes are irrelevant because they are the wrong type and the code wouldn't compile if used here. Some classes are not even displayed that could be used here (e.g. LinkedList, ConcurrentLinkedList). Let's change the scenario a bit. Let's say I have the following code: List<Object> list; list = new A| The | represents where the caret is. If I hit Ctrl+Space to bring up Content Assist, then it displays ArrayList but also a bunch of other irrelevant classes (e.g. AccessControlException). AccessControlException isn't useful since it doesn't implement the List interface and the code wouldn't compile. Please filter Content Assist to only show those classes which can legally be put here.
*** This bug has been marked as a duplicate of bug 261315 ***