Bug 22072

Summary: Code completion on continue label: broken.
Product: [Eclipse Project] JDT Reporter: Andreas Krüger <andreas.krueger>
Component: CoreAssignee: David Audel <david_audel>
Status: VERIFIED FIXED QA Contact:
Severity: enhancement    
Priority: P3    
Version: 2.0   
Target Milestone: 3.2 M4   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Andreas Krüger CLA 2002-07-31 07:39:12 EDT
Here's what I typed:

        LineNumberReader datal = new LineNumberReader(data, 1024);
        withNextLine: for (String line = datal.readLine();
            null != line;
            line = datal.readLine()) {
                if(0 == line.length()) continue with
At this point, I tried code completion, hoping it would save me
from having to type the rest of the label.
So I expected "continue withNextLine".

Instead, I get

                if(0 == line.length()) continue WithParam

and, at the top of the cu, an additional

import org.apache.xalan.xsltc.compiler.WithParam;

(I happen to have Xalan in my classpath.)
Comment 1 Philipe Mulet CLA 2003-01-28 10:06:02 EST
Label completion isn't currently supported. Post 2.1 maybe
Comment 2 Philipe Mulet CLA 2005-10-11 07:07:50 EDT
Reopening for consideration in 3.2
Comment 3 David Audel CLA 2005-11-07 04:55:50 EST
Fixed and tests added
  CompletionParserTest2#test0153() -> test0158()
  Compl;etionTests#testLabel1() -> testLabel6()

Visible labels are proposed when the completion is inside a label reference.
Comment 4 Jerome Lanneluc CLA 2005-12-12 09:39:31 EST
Verified for 3.2 M4 using build I20051212-0010