Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » JvmUnknownTypeReference for Support Class
JvmUnknownTypeReference for Support Class [message #1852898] Thu, 09 June 2022 22:18 Go to next message
Ben Holland is currently offline Ben HollandFriend
Messages: 34
Registered: April 2019
Member
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.

https://xtextcasts.org/episodes/19-xbase-s-new-jvmunknowntypereference

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

Re: JvmUnknownTypeReference for Support Class [message #1852899 is a reply to message #1852898] Fri, 10 June 2022 04:04 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
hi, i dont understand what you want to achieve. what is your usecase.

List<? extends class.that.you.know.by.Fqn> ???


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de

[Updated on: Fri, 10 June 2022 04:05]

Report message to a moderator

Previous Topic:Generate templates.xml?
Next Topic:Vscode extension formatting has different behavior than Eclipse
Goto Forum:
  


Current Time: Fri Apr 19 12:11:49 GMT 2024

Powered by FUDForum. Page generated in 0.01862 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top