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.
TypeReferencesoffers shortcuts forParameterizedTypeReferenceinstances 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.