Skip to content

Inconsistent classfile encountered on annotated generic types #4622

@tiller

Description

@tiller

Extracted from #4616

The following project : https://github.com/Tiller/jdt-annot-issue (master branch)

Gives the following error:

Inconsistent classfile encountered: The undefined type parameter T is referenced from within ReturnUpdateCommand

It is most certainly due to the annotated generics :

Patch<@ValidUrlTemplate(value = UrlValidationType.RETURN_LABEL_URL, message = "{" + RETURN_LABEL_URL_VALIDATION_ERROR + "}") String> labelUrl

This issue is also most certainly the root cause of another issue I have (but the repro given doesn't reproduce the second issue afaik) where a lot of records and/or classes of my project are silently not compiled. No error, just no .class files. But when I open the file in the editor and save, the .class is generated. => When I remove all annotated generics in my project, the issue disappear

Issue appeared after upgrading from 4.37 to 4.38 nightly

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions