Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-8315

Looping in GroovyRecognizer.enumConstants during compilation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.4.12
    • 2.4.18, 2.5.9, 3.0.0-rc-2
    • Compiler
    • None

    Description

      i tried to import the Groovy project in Eclipse using Buildship (so without using gradlew jar eclipse which is not working) and with Groovy-eclipse installed. It is blocked in "Compilation".
      This stack is roundtripping from l.6825 to 6835

      Name: Worker-3
      State: RUNNABLE
      Total blocked: 1,686  Total waited: 1,206
      
      Stack trace: 
      org.codehaus.groovy.antlr.parser.GroovyRecognizer.enumConstants(GroovyRecognizer.java:6825)
      org.codehaus.groovy.antlr.parser.GroovyRecognizer.enumBlock(GroovyRecognizer.java:5878)
      org.codehaus.groovy.antlr.parser.GroovyRecognizer.enumDefinition(GroovyRecognizer.java:2422)
      org.codehaus.groovy.antlr.parser.GroovyRecognizer.typeDefinitionInternal(GroovyRecognizer.java:2134)
      org.codehaus.groovy.antlr.parser.GroovyRecognizer.classField(GroovyRecognizer.java:6368)
      org.codehaus.groovy.antlr.parser.GroovyRecognizer.enumConstants(GroovyRecognizer.java:6868)
      org.codehaus.groovy.antlr.parser.GroovyRecognizer.enumBlock(GroovyRecognizer.java:5878)
      org.codehaus.groovy.antlr.parser.GroovyRecognizer.enumDefinition(GroovyRecognizer.java:2422)
      org.codehaus.groovy.antlr.parser.GroovyRecognizer.typeDefinitionInternal(GroovyRecognizer.java:2134)
      org.codehaus.groovy.antlr.parser.GroovyRecognizer.statement(GroovyRecognizer.java:1473)
      org.codehaus.groovy.antlr.parser.GroovyRecognizer.compilationUnit(GroovyRecognizer.java:772)
      org.codehaus.groovy.antlr.ErrorRecoveredCSTParserPlugin.transformCSTIntoAST(ErrorRecoveredCSTParserPlugin.java:64)
      org.codehaus.groovy.antlr.AntlrParserPlugin.parseCST(AntlrParserPlugin.java:113)
      org.codehaus.groovy.control.SourceUnit.parse(SourceUnit.java:248)
      org.codehaus.groovy.control.CompilationUnit$8.call(CompilationUnit.java:182)
      org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(CompilationUnit.java:966)
      org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:622)
      org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:598)
      org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:575)
      org.codehaus.jdt.groovy.internal.compiler.ast.GroovyCompilationUnitDeclaration.processToPhase(GroovyCompilationUnitDeclaration.java:220)
      org.codehaus.jdt.groovy.internal.compiler.ast.GroovyParser.dietParse(GroovyParser.java:388)
      org.codehaus.jdt.groovy.integration.internal.MultiplexingParser.dietParse(MultiplexingParser.java:53)
      org.eclipse.jdt.internal.compiler.Compiler.internalBeginToCompile(Compiler.java:827)
      org.eclipse.jdt.internal.compiler.Compiler.beginToCompile(Compiler.java:395)
      org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:441)
      org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:427)
      org.eclipse.jdt.internal.core.builder.AbstractImageBuilder.compile(AbstractImageBuilder.java:392)
      org.eclipse.jdt.internal.core.builder.BatchImageBuilder.compile(BatchImageBuilder.java:192)
      org.eclipse.jdt.internal.core.builder.AbstractImageBuilder.compile(AbstractImageBuilder.java:329)
      org.eclipse.jdt.internal.core.builder.BatchImageBuilder.build(BatchImageBuilder.java:63)
      org.eclipse.jdt.internal.core.builder.JavaBuilder.buildAll(JavaBuilder.java:256)
      org.eclipse.jdt.internal.core.builder.JavaBuilder.build(JavaBuilder.java:175)
      org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:735)
      org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:206)
      org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:246)
      org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:301)
      org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:304)
      org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:360)
      org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:383)
      org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:142)
      org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:232)
      org.eclipse.core.internal.jobs.Worker.run(Worker.java:56)
      

      it seems to be related to the groovy compiler itself (currently using the 2.4.12 embedded in Groovy-eclipse)

      Attachments

        Activity

          People

            Unassigned Unassigned
            apupier Aurélien Pupier
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: