Uploaded image for project: 'Spring Tool Suite'
  1. Spring Tool Suite
  2. STS-3804

Groovy compilation failure upon upgrade to STS 3.5.0

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Won't Fix
    • 3.5.0.RELEASE
    • None
    • GRAILS, MAVEN
    • Window 7 64 bit, JAVA 7, Maven 3, Spring 4, STS 3.5, Groovy 2.2.2.

    Description

      Simple Groovy POGO reference breaking the build. CANNOT fix the build: removed offending classes, local maven repo, target directory, rebuilt clean. Added completely new Groovy classes with same names/definitions, same broken build. Eventually all groovy POGOs are referenced as offending after subsequent builds. Definitely has something to do with creating a class, deleting it, and recreating it in STS with the same name without building in between (I was creating a new project so had Build Automatically off):

      !ENTRY org.eclipse.core.resources 4 75 2014-04-16 23:48:18.358
      !MESSAGE Errors occurred during the build.
      !SUBENTRY 1 org.eclipse.jdt.core 4 75 2014-04-16 23:48:18.358
      !MESSAGE Errors running builder 'Java Builder' on project 'gwujeel'.
      !STACK 0
      java.lang.IllegalStateException: Import reference alongside class MailInfo will trigger later failure: org.crsh.command.ScriptException declSourceStart=2 declEnd=-1
      at org.codehaus.jdt.groovy.internal.compiler.ast.GroovyCompilationUnitDeclaration.createImports(GroovyCompilationUnitDeclaration.java:384)
      at org.codehaus.jdt.groovy.internal.compiler.ast.GroovyCompilationUnitDeclaration.populateCompilationUnitDeclaration(GroovyCompilationUnitDeclaration.java:277)
      at org.codehaus.jdt.groovy.internal.compiler.ast.GroovyParser.dietParse(GroovyParser.java:458)
      at org.codehaus.jdt.groovy.integration.internal.MultiplexingParser.dietParse(MultiplexingParser.java:44)
      at org.eclipse.jdt.internal.compiler.Compiler.internalBeginToCompile(Compiler.java:776)
      at org.eclipse.jdt.internal.compiler.Compiler.beginToCompile(Compiler.java:396)
      at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:482)
      at org.eclipse.jdt.internal.core.builder.AbstractImageBuilder.compile(AbstractImageBuilder.java:390)
      at org.eclipse.jdt.internal.core.builder.BatchImageBuilder.compile(BatchImageBuilder.java:183)
      at org.eclipse.jdt.internal.core.builder.AbstractImageBuilder.compile(AbstractImageBuilder.java:327)
      at org.eclipse.jdt.internal.core.builder.BatchImageBuilder.build(BatchImageBuilder.java:62)
      at org.eclipse.jdt.internal.core.builder.JavaBuilder.buildAll(JavaBuilder.java:255)
      at org.eclipse.jdt.internal.core.builder.JavaBuilder.build(JavaBuilder.java:179)
      at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:733)
      at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:206)
      at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:246)
      at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:299)
      at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:302)
      at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:358)
      at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:381)
      at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:143)
      at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:241)
      at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)

      Attachments

        Activity

          People

            Unassigned Unassigned
            johnsully83 John Sullivan
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: