Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Xbase fails at finding common Types
Xbase fails at finding common Types [message #1733963] Thu, 02 June 2016 13:32 Go to next message
aurel pestell is currently offline aurel pestellFriend
Messages: 90
Registered: October 2013
Location: Sweden
Member
Hi,

I found a special case when Xbase can't merge two types.
It happens when you start to have nested parameterized types that have as a parameter the current class . The Type computer is then doing some endless type merging in TypeConformanceComputer leading to a Stackoverflow error.

Following is a simple test to reproduce the issue:

public class ClassA implements ParameterizedAbstractType2<ParameterizedAbstractType<ClassA>> {}


public class ClassB implements ParameterizedAbstractType2<ParameterizedAbstractType<ClassB>> {}


and the xbase file:
var typeA = new ClassA()
var typeB = new ClassB()

if (true) {
	typeA
} else {
	typeB
} 


Is it a bug I need to file in bugzilla ?
thanks
Re: Xbase fails at finding common Types [message #1733975 is a reply to message #1733963] Thu, 02 June 2016 14:46 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14729
Registered: July 2009
Senior Member
yes please file a ticket

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Day Job: https://www.everest-systems.com
Re: Xbase fails at finding common Types [message #1733981 is a reply to message #1733975] Thu, 02 June 2016 15:13 Go to previous message
aurel pestell is currently offline aurel pestellFriend
Messages: 90
Registered: October 2013
Location: Sweden
Member
https://bugs.eclipse.org/bugs/show_bug.cgi?id=495314
Previous Topic:Xbase fails at finding common Types
Next Topic:Formatting DSL File
Goto Forum:
  


Current Time: Sat Nov 09 02:34:36 GMT 2024

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

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

Back to the top