Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 346637 - ValidationMarkerReader incorrectly marks objects NOT part of the parent hierarchy
Summary: ValidationMarkerReader incorrectly marks objects NOT part of the parent hiera...
Status: RESOLVED FIXED
Alias: None
Product: Ecoretools
Classification: Modeling
Component: General (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal
Target Milestone: 2.0.0M7   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-20 06:57 EDT by Anders Forsell CLA
Modified: 2014-04-29 12:17 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anders Forsell CLA 2011-05-20 06:57:04 EDT
Build Identifier: 20100617-1415

See also bug #216296 which is incorrectly implemented:
---- ORIGINAL CODE ----
 // Bug #216296 : Marker decorators should be present
                            // in the parent hierarchy too
                            else if (locationAttribute != null && locationAttribute.startsWith(objectLocation)) { // 
                                markerList.add(marker);
                            }

--- FIXED CODE ---

 // Bug #216296 : Marker decorators should be present
                            // in the parent hierarchy too
                            else if (locationAttribute != null && locationAttribute.startsWith(objectLocation + "::")) {
                                markerList.add(marker);
                            }


Reproducible: Always

Steps to Reproduce:
1. Create a model with two sibling objects with names "Name", "Name1".
2. Create a child object to "Name1" that contains a validation error
=> Both "Name" and "Name1" will be decorated with an error
Comment 1 Cedric Brun CLA 2014-01-06 10:13:47 EST
Fixed with EcoreTools 2.0