You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Eric Milles (Jira)" <ji...@apache.org> on 2019/11/05 21:44:00 UTC

[jira] [Assigned] (GROOVY-8507) groovyc hangs when compiling nested enum

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

Eric Milles reassigned GROOVY-8507:
-----------------------------------

    Assignee: Eric Milles  (was: Daniel Sun)

> groovyc hangs when compiling nested enum
> ----------------------------------------
>
>                 Key: GROOVY-8507
>                 URL: https://issues.apache.org/jira/browse/GROOVY-8507
>             Project: Groovy
>          Issue Type: Bug
>          Components: Compiler
>    Affects Versions: 2.4.5
>         Environment: Linux ubuntu-xenial 4.4.0-116-generic #140-Ubuntu SMP Mon Feb 12 21:23:04 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
>            Reporter: Álvaro Iradier
>            Assignee: Eric Milles
>            Priority: Major
>             Fix For: 3.0.0-beta-3
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> This problem was discovered in a Jenkins pipeline, but then nailed down and found it failed with *groovyc* compiler too.
> Creating a script with two nested enums, like:
> {code:java}
> class TestClass {
>     enum OuterEnum {
>         VALUE,
>         enum InnerEnum {
>             A
>         }
>     }
> }
> {code}
> And compiling with groovyc script.groovy makes the compiler freeze with 100% CPU usage.
> In Jenkins, this results in the Job and executor being freezed and zombie (need to kill the job and executor thread), but I am reporting this to Jenkins as an independent issue.
> As the problem seems to happen in a stripped down groovy script, I am reporting it here too.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)