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

Bug 330404

Summary: FilteringScope: error in the predicate definition
Product: [Modeling] TMF Reporter: Natalia Ossipova <mail>
Component: XtextAssignee: Project Inbox <tmf.xtext-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: sebastian.zarnekow, victor.noel
Version: 1.0.1Flags: sebastian.zarnekow: helios+
Target Milestone: SR2   
Hardware: All   
OS: All   
Whiteboard:

Description Natalia Ossipova CLA 2010-11-16 16:00:04 EST
Build Identifier: 

The predicate in the second constructor of org.eclipse.xtext.scoping.impl.FilteringScope should compare eClass with the EClass of the input instead of itself. ;-)

eClass.isSuperTypeOf(eClass)  should be replaced with input.getEClass().isSuperTypeOf(eClass).

Reproducible: Always
Comment 1 Sebastian Zarnekow CLA 2011-01-15 15:21:32 EST
The predicate should be EcoreUtil.isAssignableFrom(eClass, input.getEClass()).
Comment 2 Sebastian Zarnekow CLA 2011-01-15 15:54:48 EST
Fixed in Helios_Maintenance
Comment 3 Sven Efftinge CLA 2011-01-17 02:28:28 EST
*** Bug 334386 has been marked as a duplicate of this bug. ***
Comment 4 Karsten Thoms CLA 2017-09-19 17:00:19 EDT
Closing all bugs that were set to RESOLVED before Neon.0
Comment 5 Karsten Thoms CLA 2017-09-19 17:11:42 EDT
Closing all bugs that were set to RESOLVED before Neon.0