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

Bug 338322

Summary: for feature based diagnostic also consider index
Product: [Modeling] TMF Reporter: Henrik Rentz-Reichert <hrr>
Component: XtextAssignee: Project Inbox <tmf.xtext-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: sebastian.zarnekow, sven.efftinge
Version: unspecifiedFlags: sebastian.zarnekow: indigo+
Target Milestone: M7   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
patch considering the index none

Description Henrik Rentz-Reichert CLA 2011-02-27 02:53:21 EST
From the call
org.eclipse.xtext.validation.AbstractDeclarativeValidator.error(String, EObject, EStructuralFeature, int)
a FeatureBasedDiagnostic is create but the index is never considered.

Therefore in a EReference 0..* always the first element is marked.
Comment 1 Henrik Rentz-Reichert CLA 2011-02-27 02:58:38 EST
Created attachment 189888 [details]
patch considering the index

The patch fixes the problem and is validated in the eTrice project.
Comment 2 Sven Efftinge CLA 2011-03-26 14:52:25 EDT
fixed and pushed to master
Comment 3 Sven Efftinge CLA 2011-05-20 03:28:08 EDT
for the IP team: I didn't apply the attached patch, but just fixed the problem.
Comment 4 Karsten Thoms CLA 2017-09-19 17:06:02 EDT
Closing all bugs that were set to RESOLVED before Neon.0
Comment 5 Karsten Thoms CLA 2017-09-19 17:17:53 EDT
Closing all bugs that were set to RESOLVED before Neon.0