Community
Participate
Working Groups
Build Identifier: 3.7m3 See attached CUs. Open Main and invoke content assist for IPlanningDefinitionDescriptor. It only shows one string constant although there are some. When removing the annotations, it works Reproducible: Always
Created attachment 183592 [details] Sample code
Caused by bad fix for bug 325481.
Actually its not a bad fix that caused it, but another bug thats manifesting because of the fix. Working on it.
Fixed with the latest fix for bug 325481 *** This bug has been marked as a duplicate of bug 325481 ***
(In reply to comment #0) > [..] When removing the annotations, it works Forgot to mention - the reason for this behaviour is that org.eclipse.jdt.internal.compiler.parser.SourceTypeConverter.convert(ISourceType[], CompilationResult) uses diet parse to convert source types when the number of annotations is >10. So in the attached code, commenting out 1 or more annotation in IAttributeDefinitionDescriptor makes the no. of annotations <= 10, and hence diet parse is skipped. Since it is the parser's consumeExitVariableWithInitialization() method that sets the initialization for fields, it is only in this case that we end up with the initialization as non-null, causing the earlier fix for bug 325481 to fail.
Verified for 3.7M4 using build id I20101205-2000
Content Assist still useless in M5.
(In reply to comment #7) > Content Assist still useless in M5. Can you please elucidate the exact problem you're facing, with a reproducible test case? Thanks!
(In reply to comment #8) > (In reply to comment #7) > > Content Assist still useless in M5. > > Can you please elucidate the exact problem you're facing, with a reproducible > test case? Thanks! In the Java Editor click following the 'dot' in String x; x.length(); Hit Ctrl+Space; displayed window shows no proposals.
(In reply to comment #9) >[..] > In the Java Editor click following the 'dot' in > > String x; > x.length(); > > Hit Ctrl+Space; displayed window shows no proposals. I couldn't reproduce this. Can you give the exact testcase? What preceedes this code can have an effect on content assist. I just used a simple testcase: class X{ void m() { String x; x.{CTRL-SPACE} } } and this shows me all proposals. Anyway, this doesn't seem to have any relevance to this particular bug. Please open a fresh bug report with an exact testcase. Thanks!
(In reply to comment #7) > Content Assist still useless in M5. This is just not true. Content Assist works and worked fine for most people. This bug here as reported with the test case in comment 0 was fixed in M5 is indeed working now. Please file a new bug for your problem with detailed steps to reproduce.
(In reply to comment #11) > (In reply to comment #7) > > Content Assist still useless in M5. > This is just not true. Content Assist works and worked fine for most people. > This bug here as reported with the test case in comment 0 was fixed in M5 is > indeed working now. Please file a new bug for your problem with detailed steps > to reproduce. Will do. Certainly worksforme on a naked platform, but fails with extra plugins. Will need to discvover what breaks JDT.
(In reply to comment #12) > (In reply to comment #11) > > (In reply to comment #7) > > > Content Assist still useless in M5. > > This is just not true. Content Assist works and worked fine for most people. > > This bug here as reported with the test case in comment 0 was fixed in M5 is > > indeed working now. Please file a new bug for your problem with detailed steps > > to reproduce. > > Will do. Certainly worksforme on a naked platform, but fails with extra > plugins. Will need to discvover what breaks JDT. E.g. Mylyn replaces our processors. Please cc me on the bug.