Bug 22072 - Code completion on continue label: broken.
Summary: Code completion on continue label: broken.
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 enhancement (vote)
Target Milestone: 3.2 M4   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-07-31 07:39 EDT by Andreas Krüger CLA
Modified: 2005-12-12 09:39 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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