Community
Participate
Working Groups
The code-completion did not work after a Block like switch (TestCaseMain.umgebung) { case TestCaseMain.ENTWICKLUNG : GeossGlobals.theGeossGlobals().setEntwicklung(); break; } It does not work for the rest of the method. When the case-block is deleted, the code completion works.
Can be reproduced on I20030916. Simpler test case: private Object testSwitch() { int i; switch (i) { case 1: return null; case 2: return null; case 3: return null; } Li<CODE ASSIST HERE> return null; } Saving the file does not help. Adding "Li" just before the switch statement fixes the problem. Possible completions are provided by Jdt Core.
I find the same behavior. However it does not necessarily affect to whole rest of the method. Just block that contains the switch. Workaround: Wrap the whole switch block in another one: { switch (x) { case 1: ... case 2: .... case 3: ..... default: ..... } Li<here it does not work> } Li<here it does>
The bug cannot be reproduced in I20040506 Closed