You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Keegan Witt (JIRA)" <ji...@apache.org> on 2015/08/25 15:26:45 UTC
[jira] [Closed] (GROOVY-7555) Even simple traits are not working at
all when using Eclipse: Internal groovy compiler error
[ https://issues.apache.org/jira/browse/GROOVY-7555?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Keegan Witt closed GROOVY-7555.
-------------------------------
Resolution: Invalid
This is a Groovy-Eclipse issue, not a Groovy issue. Please open an [issue|https://github.com/groovy/groovy-eclipse/issues] with that project. Be aware however, that we currently don't have a maintainer for that project so it might be a while before it gets resolved :(
> Even simple traits are not working at all when using Eclipse: Internal groovy compiler error
> --------------------------------------------------------------------------------------------
>
> Key: GROOVY-7555
> URL: https://issues.apache.org/jira/browse/GROOVY-7555
> Project: Groovy
> Issue Type: Bug
> Components: Compiler
> Affects Versions: 2.4.3
> Environment: Eclipse Luna, Windows 7 64bit, Groovy 2.4.3
> Reporter: Erika Redmark
> Priority: Critical
>
> I have an extremely simple trait with literally nothing defined:
> {code}trait ConfigurationObject { } {code}
> And I implement it, once again no class body or methods defined in any way:
> {code}class Line implements ConfigurationObject { } {code}
> And just like that, the Groovy compiler (2.4.3) on Eclipse Luna fails with an internal error:
> {code}
> BUG! exception in phase 'canonicalization' in source unit 'C:\Users\erika01\git\component_tree_model\src\main\groovy\com\<company>\component\model\tree\template\Line.groovy' JDTClassNode.getTypeClass() cannot locate class for com.<company>.component.model.tree.template.ConfigurationObject using transform loader org.codehaus.jdt.groovy.internal.compiler.ast.GroovyParser$GrapeAwareGroovyClassLoader@6ee4820b
> at org.codehaus.jdt.groovy.internal.compiler.ast.JDTClassNode.getTypeClass(JDTClassNode.java:710)
> at org.codehaus.groovy.ast.ClassNode.getTypeClass(ClassNode.java:1517)
> at org.codehaus.groovy.transform.trait.Traits.findHelpers(Traits.java:126)
> at org.codehaus.groovy.transform.trait.TraitComposer.doExtendTraits(TraitComposer.java:110)
> at org.codehaus.groovy.control.CompilationUnit$11.call(CompilationUnit.java:213)
> at org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:1221)
> at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:651)
> at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:629)
> at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:606)
> at org.codehaus.jdt.groovy.internal.compiler.ast.GroovyCompilationUnitDeclaration.processToPhase(GroovyCompilationUnitDeclaration.java:201)
> at org.codehaus.jdt.groovy.internal.compiler.ast.GroovyCompilationUnitDeclaration.analyseCode(GroovyCompilationUnitDeclaration.java:2289)
> at org.eclipse.jdt.core.dom.CompilationUnitResolver.resolve(CompilationUnitResolver.java:1231)
> at org.eclipse.jdt.core.dom.CompilationUnitResolver.resolve(CompilationUnitResolver.java:713)
> at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1183)
> at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:809)
> at org.eclipse.jdt.internal.ui.javaeditor.ASTProvider$1.run(ASTProvider.java:544)
> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
> at org.eclipse.jdt.internal.ui.javaeditor.ASTProvider.createAST(ASTProvider.java:537)
> at org.eclipse.jdt.internal.ui.javaeditor.ASTProvider.getAST(ASTProvider.java:480)
> at org.eclipse.jdt.ui.SharedASTProvider.getAST(SharedASTProvider.java:128)
> at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:170)
> at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$3.run(SelectionListenerWithASTManager.java:155)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
> {code}
> I am using Eclipse Luna with the latest 2.4.3 Groovy compiler, and Java 8.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)