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

Bug 321351

Summary: [Regression] isSuperTypeOf and getEAllSuperTypes no longer include EObject
Product: [Modeling] EMF Reporter: Paul Elder <pelder.eclipse>
Component: CoreAssignee: Ed Merks <Ed.Merks>
Status: RESOLVED INVALID QA Contact:
Severity: major    
Priority: P3    
Version: 2.6.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Junit demonstrating problems none

Description Paul Elder CLA 2010-07-30 10:31:01 EDT
This is a regression for EMF 2.5 and earlier.

EClass.isSuperTypeOf() and EClass.getEAllSuperTypes() no longer include/recognize the EObject eClass.

Attaching JUnits that demonstrate the problem. They work in EMF 2.4 & 2.5, but fail in EMF 2.6
Comment 1 Paul Elder CLA 2010-07-30 10:34:06 EDT
Created attachment 175580 [details]
Junit demonstrating problems

Attaching JUnit. 
Pre-2.6, getEAllSuperTypes for EPackage returned:

EObject, EModelElement, ENamedElement

With 2.6, it returns:

EModelElement, ENamedElement

This is not limited to EPackage. Every UML2 type and ECore type now excludes EObject.
Comment 2 Ed Merks CLA 2010-07-30 10:42:57 EDT
This is intentional.  See the discussion in https://bugs.eclipse.org/bugs/show_bug.cgi?id=255469.