Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 356290 - [Xtend] Class can extend itself
Summary: [Xtend] Class can extend itself
Status: CLOSED FIXED
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: 2.0.1   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: SR2   Edit
Assignee: Jan Koehnlein CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-31 05:00 EDT by Jan Koehnlein CLA
Modified: 2017-09-19 18:05 EDT (History)
1 user (show)

See Also:
jan: indigo+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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