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: 13186
Registered: July 2009
Senior Member
yes please file a ticket

Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/xtext/
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
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: Thu Nov 14 06:18:22 GMT 2019

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

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

Back to the top