Community
Participate
Working Groups
Given the snippet below, I'd expect JavaContentAssistInvocationContext.getExpectedTyoe() to return "File" but I receive null: File base = new File("data"); for(File f : base.list$){ As consequence, JDT code completion proposes all proposals and doesn't rank those completions that actually return files on top (listFiles() in this case).
One addition: It's not clear which type to propose here but File[] and Iterable<File> seems suitable for me. Side question: Since building super-/subtype hierarchies is too slow for code completion, are there any means how to perform super type lookups extremely fast? Is there some index that could do this - or - are there any thoughts on this?