Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trait properties and methods ignored #1509

Closed
injecteer opened this issue Aug 29, 2023 · 2 comments
Closed

Trait properties and methods ignored #1509

injecteer opened this issue Aug 29, 2023 · 2 comments
Assignees
Labels
Milestone

Comments

@injecteer
Copy link

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.

@eric-milles
Copy link
Member

caused by: 97a612e

image

@eric-milles eric-milles self-assigned this Aug 29, 2023
@eric-milles eric-milles added this to the v5.1.0 milestone Aug 29, 2023
eric-milles added a commit that referenced this issue Aug 29, 2023
@eric-milles
Copy link
Member

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants