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 #1733964] 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 #1733965 is a reply to message #1733964] Thu, 02 June 2016 13:51 Go to previous message
aurel pestell is currently offline aurel pestellFriend
Messages: 90
Registered: October 2013
Location: Sweden
Member
@admin: is there a way to delete this duplicate ? Not sure how this happened, all my apologize.
Previous Topic:Highlighting Issues with related keyword varieties
Next Topic:Xbase fails at finding common Types
Goto Forum:
  


Current Time: Sun Nov 17 12:28:22 GMT 2019

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

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

Back to the top