Details
-
Type:
Improvement
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 1.6-rc-1
-
Fix Version/s: 4.0
-
Component/s: Compiler, parser-antlr
-
Labels:None
-
Number of attachments :
Description
Unlike Java, Groovy doesn't support multiple labels on the same statement - instead, the AST builder discards all but the first (!) label:
class MultipleLabels {
static void main(args) {
label1:
label2:
while (true)
}
}
For a discussion see: http://www.nabble.com/Multiple-labels-on-the-same-statement-td21543898.html
Activity
Guillaume Laforge
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Fix Version/s | 1.7-beta-1 [ 14014 ] | |
| Fix Version/s | 1.6.1 [ 14852 ] |
Peter Niederwieser
made changes -
| Attachment | MultipleLabels.patch [ 39474 ] |
Guillaume Laforge
made changes -
| Fix Version/s | 1.6.1 [ 14852 ] | |
| Fix Version/s | 1.6.2 [ 15151 ] |
Guillaume Laforge
made changes -
| Fix Version/s | 1.6.3 [ 15251 ] | |
| Fix Version/s | 1.6.2 [ 15151 ] |
Guillaume Laforge
made changes -
| Fix Version/s | 1.6.3 [ 15251 ] |
Guillaume Laforge
made changes -
| Fix Version/s | 1.7-beta-x [ 15538 ] | |
| Fix Version/s | 1.7-beta-1 [ 14014 ] |
blackdrag blackdrag
made changes -
| Fix Version/s | 1.7.x [ 15538 ] | |
| Description |
Unlike Java, Groovy doesn't support multiple labels on the same statement - instead, the AST builder discards all but the first (!) label: class MultipleLabels { static void main(args) { label1: label2: while (true) { break label1 // OK break label2 // Compile error: "break to missing label" } } } For a discussion see: http://www.nabble.com/Multiple-labels-on-the-same-statement-td21543898.html |
Unlike Java, Groovy doesn't support multiple labels on the same statement - instead, the AST builder discards all but the first (\!) label:
class MultipleLabels { static void main(args) { label1: label2: while (true) { break label1 // OK break label2 // Compile error: "break to missing label" } } } For a discussion see: http://www.nabble.com/Multiple-labels-on-the-same-statement-td21543898.html |
| Component/s | parser-antlr [ 11322 ] |
blackdrag blackdrag
made changes -
| Fix Version/s | 4.0 [ 18928 ] |