Skip to main content



      Home
Home » Modeling » TMF (Xtext) » Xbase fails at finding common Types
Xbase fails at finding common Types [message #1733963] Thu, 02 June 2016 09:32 Go to next message
Eclipse UserFriend
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 10:46 Go to previous messageGo to next message
Eclipse UserFriend
yes please file a ticket
Re: Xbase fails at finding common Types [message #1733981 is a reply to message #1733975] Thu, 02 June 2016 11:13 Go to previous message
Eclipse UserFriend
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 May 17 06:19:37 EDT 2025

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

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

Back to the top