| Summary: | Query2 returning wrong results | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Modeling] EMF | Reporter: | Ashwani Kr Sharma <ashw.kumar> | ||||
| Component: | Query2 | Assignee: | Project Inbox <emf.query2-inbox> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | major | ||||||
| Priority: | P3 | ||||||
| Version: | unspecified | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Windows 7 | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
Created attachment 177925 [details]
Patch fixes this issue
Patch fixes this issue.
Now, during schdeuling the spreading happens only within target scope of the node
Looks good, patch applied! Thx Bernd |
Build Identifier: Following query in the demo editor returns wrong results: from Person as p in resources { "platform:/resource/org.eclipse.emf.query2.librarytest/data/person/T.xmi" } ,Book as b in resources {"platform:/resource/org.eclipse.emf.query2.librarytest/data/library/Accra.xmi" } select p, p.name where b.borrowedBy = p Problem: If Accra.xml is dirty, it returns all the p's even from resources outside T.xmi Code to make Accra.xmi dirty: URI uri1 = URI.createURI("platform:/resource/org.eclipse.emf.query2.librarytest/data/library/Accra.xmi"); Resource resource1 = rs.getResource(uri1, true); EObject eObject = resource1.getContents().get(0); resource1.setTrackingModification(true); resource1.setModified(true); Reproducible: Always Steps to Reproduce: Following query in the demo editor returns wrong results: from Person as p in resources { "platform:/resource/org.eclipse.emf.query2.librarytest/data/person/T.xmi" } ,Book as b in resources {"platform:/resource/org.eclipse.emf.query2.librarytest/data/library/Accra.xmi" } select p, p.name where b.borrowedBy = p Problem: If Accra.xml is dirty, it returns all the p's even from resources outside T.xmi Code to make Accra.xmi dirty: URI uri1 = URI.createURI("platform:/resource/org.eclipse.emf.query2.librarytest/data/library/Accra.xmi"); Resource resource1 = rs.getResource(uri1, true); EObject eObject = resource1.getContents().get(0); resource1.setTrackingModification(true); resource1.setModified(true);