Skip to content

Open class implementing trait in editor or search for trait results in error #548

@eric-milles

Description

@eric-milles

Open the class in the Groovy Editor and the error below is logged. This may be related to #175, since the referenced trait is only reconciled to compile phase 3.

MyClass.groovy:

class MyClass implements MyTrait {
}

MyTrait.groovy:

trait MyTrait {
  def m() { 'm' }
}

Groovy:Groovy compiler error: exception in phase 'canonicalization' in source unit '...\eclipse-space\Groovy\src\main\traits2\MyClass.groovy' JDTClassNode.getTypeClass() cannot locate class for traits.MyTrait using transform loader groovy.lang.GroovyClassLoader@36edbb99

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions