Community
Participate
Working Groups
Build ID: I20090202-1535 Steps To Reproduce: 1. try to trigger content assist after "implements" class A implements ^ type ctrl+space here Content assistant only proposes top-level interface and not interfaces enclosed in classes. The dual bug exist too, after "extends", content assistant doesn't propose class members. More information:
Member types are proposed if the completion occurs after at least one character. When no characters precede the completion cursor then only a subset of possible proposals is proposed. Otherwise the number of proposals will be too high. In this case only top level types defined in the completed compilation unit are proposed. Member types defined in these top level types could be also proposed.
Ayush, please take a look.
Created attachment 165752 [details] proposed fix v1.0 + updated regression tests This may be a little expensive if there are lot of inner types in a compilation unit. Anyway, in the absence of any cue to content assist, we have to take the brute force approach of finding all proposals. Olivier, can you please review for M7? Thanks
Patch looks good, but testing it inside a self-hosting workspace I could not get any completion. It looks like the completion times out every time. Ayushman, please take a look at this.
Ok, seems to work fine after rebooting. +1. Released for 3.6M7. Regression tests added in: org.eclipse.jdt.core.tests.model.CompletionTests#testBug267091a org.eclipse.jdt.core.tests.model.CompletionTests#testBug267091b
Verified for 3.6M7 using build I20100424-2000. Raised bug# 310423 as a follow up.