| Summary: | [Legacy] Bugzilla_247141_Test.testContentAdapterBehavior fails in Legacy | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Modeling] EMF | Reporter: | Martin Fluegge <martin.fluegge> | ||||
| Component: | cdo.legacy | Assignee: | Martin Fluegge <martin.fluegge> | ||||
| Status: | CLOSED FIXED | QA Contact: | Eike Stepper <stepper> | ||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | vroldanbet | ||||
| Version: | 4.0 | Flags: | stepper:
review+
|
||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Martin Fluegge
Created attachment 188857 [details]
Patch v1
The problem was that the CDOLazyContentAdapter check the object's resource to find out whether the object is contained or not. But this check is done before cdoInternalPostLoad() is called on the object and hence the internal instance is not filled with the correct value. So the resource is not set and calling object.cdoResource() always delivers null.
I enhanced the method to make sure that the resource is always set when this method is called.
Thanks Martin, it seems to pass now :) If Eike agrees, this shall be committed. Cheers! Committed revision 7077 Available in R20110608-1407 |