Community
Participate
Working Groups
I20050118-1015 class User { enum Color {RED, GREEN, BLUE} void x() { Color.valueOf("RED"); Color.values(); } } ICodeAssist#codeSelect(..) on implicit methods 'valueOf(String)' and 'values()' of enum Color should not return a java element. Currently, the declaring enum is returned.
Fixed in HEAD and test added ResolveTests_1_5#test0098() synthetic methods aren't proposed any more.
Seems that the enum declaration is still selected when using F3 on a synthetic method reference.
The problem is not fixed, there is an error inside the regression test. valueOf() method hasn't (and must not have) the synthetic modifiers. I will make a new fix for 3.2M3.
Fixed in HEAD and test updated ResolveTests_1_5#test0098()
Verified for 3.2 M3 using build I20051025-0800+JDT/Core HEAD