Community
Participate
Working Groups
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);
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