| Summary: | CDOView.getObject(T) causes ClassCastException with legacy objects | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Modeling] EMF | Reporter: | Eike Stepper <stepper> | ||||
| Component: | cdo.legacy | Assignee: | Eike Stepper <stepper> | ||||
| Status: | CLOSED FIXED | QA Contact: | Eike Stepper <stepper> | ||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | martin.fluegge | ||||
| Version: | 3.0 | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Windows 7 | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Eike Stepper
Created attachment 170052 [details]
Patch
For future reference
Changed to:
CDOID id = object.cdoID();
InternalCDOObject contextified = getObject(id, true);
@SuppressWarnings("unchecked")
T cast = (T)CDOUtil.getEObject(contextified);
return cast;
Available in 3.0 GA: http://download.eclipse.org/modeling/emf/cdo/updates/3.0-releases/ |