Community
Participate
Working Groups
Build Identifier: M20110210-1200 I have a class that has static methods on it. The class has a type parameter. The class is listed in the Java/Editor/Content Assist/Favorites preferences pane. When I type the start of one of these static method names, Eclipse does NOT offer the method in Content Assist. I've debugged through the code, and I think I've found where this case is being tossed aside. org.eclipse.jdt.internal.codeassist.CompletionEngine#findFieldsAndMethodsFromFavorites has a switch statement with a case of Binding.TYPE, however adding the type in question is Binding.GENERIC_TYPE. I did a quick spike by adding Binding.GENERIC_TYPE right along side of Binding.TYPE, and it appears to have worked, but I have no idea what other consequences might be. Reproducible: Always Steps to Reproduce: 1. Create a generic class 2. define a static method on it 3. Add it to the Content Assist Favorites 4. In the method of another class, type the class method name and invoke Content Assist.
Could you please try with 3.7M6 ? It seems to work for me.
You're right. It appears to have been address in 3.7
Created attachment 191081 [details] test case I could not reproduce using the above test case after adding p.Test.doSomething in the content assist favourites.
Closing as WORKSFORME
Verified for 3.7 M7