Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 330404 - FilteringScope: error in the predicate definition
Summary: FilteringScope: error in the predicate definition
Status: CLOSED FIXED
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: 1.0.1   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: SR2   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 334386 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-11-16 16:00 EST by Natalia Ossipova CLA
Modified: 2017-09-19 17:11 EDT (History)
2 users (show)

See Also:
sebastian.zarnekow: helios+


Attachments

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