groovy-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xiaoguang Wang (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (GROOVY-8470) dead loop when compiling 'enum in enum without semicolon'
Date Mon, 05 Feb 2018 05:41:00 GMT

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

Xiaoguang Wang updated GROOVY-8470:
-----------------------------------
    Description: 
cat a.groovy
{code:java}
enum EnumA {

    EA(EnumB.EB)   // without a semicolon here, the groovyc enters dead loop

    enum EnumB { EB }
    private EnumA(EnumB enumB) {
    }
}
{code}
Run:

groovyc a.groovy

 

It hangs.

 

 

  was:
{code:java}
enum EnumA {

    EA(EnumB.EB)   // without a semicolon here, the groovyc enters dead loop

    enum EnumB { EB }
    private EnumA(EnumB enumB) {
    }
}
{code}


> dead loop when compiling 'enum in enum without semicolon'
> ---------------------------------------------------------
>
>                 Key: GROOVY-8470
>                 URL: https://issues.apache.org/jira/browse/GROOVY-8470
>             Project: Groovy
>          Issue Type: Bug
>          Components: Compiler
>    Affects Versions: 2.4.13
>            Reporter: Xiaoguang Wang
>            Priority: Major
>
> cat a.groovy
> {code:java}
> enum EnumA {
>     EA(EnumB.EB)   // without a semicolon here, the groovyc enters dead loop
>     enum EnumB { EB }
>     private EnumA(EnumB enumB) {
>     }
> }
> {code}
> Run:
> groovyc a.groovy
>  
> It hangs.
>  
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message