injecteer
injecteer

Reputation: 20707

Trait methods are not fully visible in groovy-eclipse

I have 2 traits:

trait LinkTrait<D> {
  String compositeKey
}

trait Named<D> {
  String name
}

and a class:

class Project implements LinkTrait<Project>, Named<Project> {

  String company

  def beforeValidate() {
    if( company && name ) setCompositeKey company + '_' + name
  }
}

The code compiles and executes just fine.

The problem is, that in Eclipse 2020-03 and

Eclipse Groovy Development Tools

Version: 3.8.0.v202004242058-e2003

the code looks like:

enter image description here

Here the name field and setCompositeKey() method are suggested in code-completion, but are both underlined as unknown and neither Ctrl+Click nor F3 do not open its' declarations.

Is this a bug or some "misconfiguration"?

Upvotes: 0

Views: 161

Answers (0)

Related Questions