| Summary: | queryXRefs does not work with specific source references | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Modeling] EMF | Reporter: | Eike Stepper <stepper> | ||||
| Component: | cdo.core | Assignee: | Eike Stepper <stepper> | ||||
| Status: | CLOSED FIXED | QA Contact: | Eike Stepper <stepper> | ||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | jon, lothar, stefan | ||||
| Version: | 4.0 | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
Created attachment 185828 [details]
Patch v1 - for future reference
This patch fixes several small bugs in the protocol encoding/decoding of references. And in the usage of the new SubTypes cache.
Added tests: org.eclipse.emf.cdo.tests.XRefTest.testSpecificReferences1() org.eclipse.emf.cdo.tests.XRefTest.testSpecificReferences2() Committed to HEAD Available in R20110608-1407 |
From Lothar's mail: If I try to use this I get a NPE (see attachment) List<CDOObjectReference> xrefs = cdoView().queryXRefs( Collections.singleton(CDOUtil.getCDOObject(this)), MarketplacePackage.eINSTANCE.getEvent_Templates()); If I don't pass in the EReference, queryXRefs works fine. List<CDOObjectReference> xrefs = cdoView().queryXRefs( Collections.singleton(CDOUtil.getCDOObject(this)));