|
Re: Proxy Resolution Problem [message #660379 is a reply to message #660373] |
Fri, 18 March 2011 08:21 |
Markus Herrmannsdoerfer Messages: 50 Registered: July 2009 |
Member |
|
|
Unfortunately, I cannot switch to the trunk version of EMF in some
projects. Is there a way to circumvent this problem, i.e. to force these
proxies to resolve?
Thanks.
Am 18.03.2011 08:42, schrieb Markus Herrmannsdoerfer:
> Hi *,
>
> I have the problem that proxies of single-valued references do not get
> resolved, even though resolve proxies is true. As a result, migrations
> specified in COPE/Edapt are not working. I debugged a lot and found the
> following code snippet in EStructuralFeatureImpl:
>
> 2815 public static class
> InternalSettingDelegateSingleEObjectResolvingUnsettable extends
> InternalSettingDelegateSingleEObject
> 2816 {
> 2817 public
> InternalSettingDelegateSingleEObjectResolvingUnsettable(ECla ss eClass,
> EStructuralFeature feature)
> 2818 {
> 2819 super(eClass, feature);
> 2820 }
> 2821
> 2822 @Override
> 2823 protected boolean isUnsettable()
> 2824 {
> 2825 return true;
> 2826 }
> 2827 }
>
> Must the class InternalSettingDelegateSingleEObjectResolvingUnsettable
> not inherit from InternalSettingDelegateSingleEObjectResolving instead
> of InternalSettingDelegateSingleEObject? It seems to me that this only
> affects reflective deserialization.
> Thanks and cheers,
>
> Markus
|
|
|
Re: Proxy Resolution Problem [message #660454 is a reply to message #660379] |
Fri, 18 March 2011 13:41 |
Ed Merks Messages: 33217 Registered: July 2009 |
Senior Member |
|
|
Markus,
Yes, that looks wrong. Please open a bugzilla.
EStructuralFeature.Internal.setSettingDelegate can be used to set your
own setting delegate implementation into the feature that's not working
properly otherwise.
Markus Herrmannsdoerfer wrote:
> Unfortunately, I cannot switch to the trunk version of EMF in some
> projects. Is there a way to circumvent this problem, i.e. to force
> these proxies to resolve?
> Thanks.
>
> Am 18.03.2011 08:42, schrieb Markus Herrmannsdoerfer:
>> Hi *,
>>
>> I have the problem that proxies of single-valued references do not get
>> resolved, even though resolve proxies is true. As a result, migrations
>> specified in COPE/Edapt are not working. I debugged a lot and found the
>> following code snippet in EStructuralFeatureImpl:
>>
>> 2815 public static class
>> InternalSettingDelegateSingleEObjectResolvingUnsettable extends
>> InternalSettingDelegateSingleEObject
>> 2816 {
>> 2817 public
>> InternalSettingDelegateSingleEObjectResolvingUnsettable(ECla ss eClass,
>> EStructuralFeature feature)
>> 2818 {
>> 2819 super(eClass, feature);
>> 2820 }
>> 2821
>> 2822 @Override
>> 2823 protected boolean isUnsettable()
>> 2824 {
>> 2825 return true;
>> 2826 }
>> 2827 }
>>
>> Must the class InternalSettingDelegateSingleEObjectResolvingUnsettable
>> not inherit from InternalSettingDelegateSingleEObjectResolving instead
>> of InternalSettingDelegateSingleEObject? It seems to me that this only
>> affects reflective deserialization.
>> Thanks and cheers,
>>
>> Markus
>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.03570 seconds