|JvmUnknownTypeReference for Support Class [message #1852898]
||Thu, 09 June 2022 22:18
| Ben Holland
Registered: April 2019
I have a situation nearly identical to this very old article where I want to generated a support class which I need to create a type reference to. The newTypeRef API looks like what I want but seems to have been removed or replaced although with what I cannot tell. |
I found that creating the typeRef to the to be generate type works if I run from Eclipse (the JDTTypeProvider seems to pick up on the generated type and eventually resolve the JvmUnknownTypeReference), however outside of Eclipse where I don't have a provider running on incremental changes the safe initialization sometimes ends up producing types like:
Object /* List<? extends frusteratingly.the.correct.type> */
It seems to consistently fail on wildcard extends.
What is the right way to do this?
[Updated on: Thu, 09 June 2022 22:20]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.02441 seconds