Description
When doing a debug evaluation inside of org.codehaus.groovy.eclipse.test.actions.AbstractOrganizeImportsTest in the Groovy-Eclipse code base, I keep getting the following problem with the evaluation:
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
____Eval.groovy: 17: unexpected token: . @ line 17, column 15.
class codehaus.groovy.eclipse.test.actions.NoChoiceQuery{ }
^
1 error
at org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorCollector.java:306)
at org.codehaus.groovy.control.ErrorCollector.addFatalError(ErrorCollector.java:153)
at org.codehaus.groovy.control.ErrorCollector.addError(ErrorCollector.java:123)
at org.codehaus.groovy.control.ErrorCollector.addError(ErrorCollector.java:135)
at org.codehaus.groovy.control.SourceUnit.addError(SourceUnit.java:386)
at org.codehaus.groovy.antlr.ErrorRecoveredCSTParserPlugin.transformCSTIntoAST(ErrorRecoveredCSTParserPlugin.java:91)
at org.codehaus.groovy.antlr.AntlrParserPlugin.parseCST(AntlrParserPlugin.java:76)
at org.codehaus.groovy.control.SourceUnit.parse(SourceUnit.java:264)
at org.codehaus.groovy.control.CompilationUnit$8.call(CompilationUnit.java:181)
at org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(CompilationUnit.java:953)
at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:584)
at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:560)
at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:537)
at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:306)
at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:287)
at com.springsource.sts.groovy.debug.core.evaluation.GroovyJDIEvaluator.convertSnippetToScript(GroovyJDIEvaluator.java:332)
at com.springsource.sts.groovy.debug.core.evaluation.GroovyJDIEvaluator.performEvaluate(GroovyJDIEvaluator.java:170)
at com.springsource.sts.groovy.debug.core.evaluation.GroovyJDIEvaluator$1$1.run(GroovyJDIEvaluator.java:148)
at org.eclipse.jdt.internal.debug.core.model.JDIThread.runEvaluation(JDIThread.java:688)
at com.springsource.sts.groovy.debug.core.evaluation.GroovyJDIEvaluator$1.run(GroovyJDIEvaluator.java:153)
at org.eclipse.jdt.internal.debug.core.model.JDIThread$ThreadJob.run(JDIThread.java:2805)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Looks like there is a problem with the other classes in the file and this is causing a compile error in the generated compilation unit.