[
https://issues.apache.org/jira/browse/GROOVY-3908?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Eric Milles updated GROOVY-3908:
--------------------------------
Labels: break continue (was: )
> groovyc should enforce correct usage of "continue"
> --------------------------------------------------
>
> Key: GROOVY-3908
> URL: https://issues.apache.org/jira/browse/GROOVY-3908
> Project: Groovy
> Issue Type: Bug
> Components: Compiler
> Affects Versions: 1.6.6, 1.7-rc-1
> Reporter: Peter Niederwieser
> Assignee: Daniel Sun
> Priority: Major
> Labels: break, continue
> Fix For: 5.0.0-beta-1, 4.0.27
>
>
> Currently, "continue" can be used to do pretty much anything:
> {code}
> class UseContinueAsGoto {
> static main(args) {
> continue label1
> return
>
> label1:
> println "Groovy supports goto!"
> }
> }
> {code}
> groovyc should restrict the usage of "continue" to what is officially
> supported. Same for "break" (haven't tried that).
--
This message was sent by Atlassian Jira
(v8.20.10#820010)