Skip to content

Prevent accidental non-anonymous use of TypeReferences #2483

@odrotbohm

Description

@odrotbohm

TypeReferences offers shortcuts for ParameterizedTypeReference instances typed to our common representation model subtypes to shorten the declaration. That said, to be able to fully analyze the generics, even these shortened invocations need to make use of an anonymous type. Otherwise the type resolution fails silently.

During the type resolution, we could detect that the class we inspect is not an anonymous type and reject it.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions