Skip to content

GROOVY-10124: "refers to the missing type" error in Greclipse (not Groovy) #1300

@mauromol

Description

@mauromol

Consider the attached project.
If you run ./gradlew jar it will compile fine.
However, if you open it in Greclipse and open the class test.test.TestGreclipseError, you'll see an error:

The method getResult() from the type BaseResponse<Result> refers to the missing type Result

Of course, the mentioned type is not missing.

This is quite annoying because Eclipse seems not to perform a clean build for this. I suspect the problem lies in test.api.io.BaseResponse<T>, which has a field result of the generic type T.

If the fix is hard, a suggestion for a workaround would be much appreciated.

TestGroovyGradle.zip

Tested with Greclipse 4.3.0.v202109281919-e2009.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions