CDO feature bug? FeatureNotFoundException [message #426220] |
Fri, 19 December 2008 13:46  |
Eclipse User |
|
|
|
Hello,
i have a ecore model with this feature in it.
<eStructuralFeatures xsi:type="ecore:EAttribute" name="performedBy"
unique="false"
upperBound="-1" eType="ecore:EDataType
http://www.eclipse.org/emf/2003/XMLType#//String">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="PerformedBy"/>
</eAnnotations>
</eStructuralFeatures>
Now i want to load an exmaple model with a class in it and this feature
isn't set. This leads to following generation in the xmi file
<ContentElement xsi:type="uma:Task" name="Check Compatibility"
briefDescription="" id="_KuaOoJRqEd2LH7gFeFi93A" orderingGuide=""
presentationName="Check Compatibility" suppressed="false"
isAbstract="false" variabilityType="na" PerformedBy="">
If i want to load this model i get an feature not found exception. I
tried this in cdo 1.0,1.4 and 2.0m4 . Allway the same. Is it a bug, or
miss i something?
Greetings
Jörg
|
|
|
|
|
|
|
Re: CDO feature bug? FeatureNotFoundException [message #426225 is a reply to message #426224] |
Fri, 19 December 2008 16:24  |
Eclipse User |
|
|
|
Thanks
Simon McDuff schrieb:
> We have already a bugzilla open for it. (few days ago)
>
> See below:
> 258933: CDORevisionImpl.eIsSet() works incorrectly
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=258933
>
> I will add comments made here into the bugs!!
>
> Simon
>
> Ed Merks wrote:
>> Jörg,
>>
>> It's a bug if it's doing that. If it's still doing that in M4, open a
>> CDO bugzilla.
>>
>>
>> Jörg wrote:
>>> Jep, this eIsSet Method gets true. Is this a bug and will be fixed or
>>> should i overwrite this method?
>>>
>>> Greetings
>>>
>>> Ed Merks schrieb:
>>>> Jörg,
>>>>
>>>> Comments below.
>>>>
>>>> Jörg wrote:
>>>>> Hello,
>>>>>
>>>>> i have a ecore model with this feature in it.
>>>>>
>>>>> <eStructuralFeatures xsi:type="ecore:EAttribute"
>>>>> name="performedBy" unique="false"
>>>>> upperBound="-1" eType="ecore:EDataType
>>>>> http://www.eclipse.org/emf/2003/XMLType#//String">
>>>>> <eAnnotations
>>>>> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
>>>>> <details key="kind" value="element"/>
>>>>> <details key="name" value="PerformedBy"/>
>>>>> </eAnnotations>
>>>>> </eStructuralFeatures>
>>>>>
>>>>> Now i want to load an exmaple model with a class in it and this
>>>>> feature isn't set. This leads to following generation in the xmi file
>>>>>
>>>>> <ContentElement xsi:type="uma:Task" name="Check Compatibility"
>>>>> briefDescription="" id="_KuaOoJRqEd2LH7gFeFi93A" orderingGuide=""
>>>>> presentationName="Check Compatibility" suppressed="false"
>>>>> isAbstract="false" variabilityType="na" PerformedBy="">
>>>> I would expect it to be serialized as an element.
>>>>>
>>>>> If i want to load this model i get an feature not found exception.
>>>>> I tried this in cdo 1.0,1.4 and 2.0m4 . Allway the same. Is it a
>>>>> bug, or miss i something?
>>>> What kind of resource as you using to load this?
>>>>
>>>> It seems to me that CDO had a problem in the implementation of
>>>> eIsSet. What you show above would be caused by "performedBy"
>>>> feature true for eIsSet, even though the list is empty...
>>>>>
>>>>> Greetings
>>>>> Jörg
|
|
|
Powered by
FUDForum. Page generated in 0.24714 seconds