Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 1.6.6, 1.7-rc-1
-
Fix Version/s: None
-
Component/s: Compiler
-
Labels:None
-
Testcase included:yes
-
Number of attachments :
Description
Currently, "continue" can be used to do pretty much anything:
class UseContinueAsGoto {
static main(args) {
continue label1
return
label1:
println "Groovy supports goto!"
}
}
groovyc should restrict the usage of "continue" to what is officially supported. Same for "break" (haven't tried that).