Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 356290

Summary: [Xtend] Class can extend itself
Product: [Modeling] TMF Reporter: Jan Koehnlein <jan>
Component: XtextAssignee: Jan Koehnlein <jan>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: tmf.xtext-inbox
Version: 2.0.1Flags: jan: indigo+
Target Milestone: SR2   
Hardware: All   
OS: All   
Whiteboard:

Description Jan Koehnlein CLA 2011-08-31 05:00:06 EDT
...and result in invalid Java code:

  package test

  class XtendClass extends XtendClass {
  }

-> 

  package test;

  @SuppressWarnings("all")
  public class XtendClass extends test.XtendClass {
  }

A validation rule should solve this issue.
Comment 1 Jan Koehnlein CLA 2011-09-13 07:43:36 EDT
Cyles in the type hierarchy should be detected. Currently they alos lead to StackOverflowExceptions at org.eclipse.xtext.common.types.impl.JvmDeclaredTypeImplCustom.getAllFeaturesMap(JvmDeclaredTypeImplCustom.java:154)
Comment 2 Jan Koehnlein CLA 2011-09-13 09:23:38 EDT
Pushed to MASTER.
Comment 3 Karsten Thoms CLA 2017-09-19 17:54:40 EDT
Closing all bugs that were set to RESOLVED before Neon.0
Comment 4 Karsten Thoms CLA 2017-09-19 18:05:36 EDT
Closing all bugs that were set to RESOLVED before Neon.0