Skip to content

Trait properties and methods ignored #1509

@injecteer

Description

@injecteer

Using
Eclipse Build id: 20230608-1333
Eclipse Groovy Development Tools 5.0.0.v202306301519-e2306

For a class:

import grails.gorm.annotation.Entity
import grails.mongodb.MongoEntity

@Entity
class Game implements MongoEntity<Game> {}

where the MongoEntity defines the methods like:

@CompileStatic
trait MongoEntity<D> implements GormEntity<D>, DynamicAttributes {
    static MongoCollection<Document> getCollection() {
        currentMongoStaticApi().getCollection()
    }
}

If I use the class in the code:

image

it compiles and runs just fine, but the trait methods are underlined as "unknown" and also not resolved in autocomplete.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions