[ 
https://issues.apache.org/jira/browse/GROOVY-3908?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Daniel Sun closed GROOVY-3908.
------------------------------
    Fix Version/s: 5.0.0-alpha-13
                   4.0.27
         Assignee: Daniel Sun
       Resolution: Fixed

> 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
>             Fix For: 5.0.0-alpha-13, 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)

Reply via email to