[ 
https://issues.apache.org/jira/browse/TUSCANY-931?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kelvin Goodson updated TUSCANY-931:
-----------------------------------

    Fix Version/s: Java-SDO-M3

> Sequence.add(int index, String propertyName, Object value) is not functioning 
> correctly
> ---------------------------------------------------------------------------------------
>
>                 Key: TUSCANY-931
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-931
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SDO Implementation
>    Affects Versions: Java-M2, Java-SCA-Mx
>         Environment: No specific environment
>            Reporter: David T. Adcox
>             Fix For: Java-SDO-M3
>
>         Attachments: DefectTestApp.java, FeatureMapValidation.java, 
> FeatureMapValidation.xsd, SDOUtil.931
>
>
> The Sequence.add(int index, String propertyName, Object value) throws a 
> java.lang.RuntimeException.  Here is a stack trace from this issue:
> Exception in thread "main" java.lang.RuntimeException: Invalid entry feature 
> 'Customer.multi'
>       at 
> org.eclipse.emf.ecore.util.BasicFeatureMap.validate(BasicFeatureMap.java:87)
>       at org.eclipse.emf.common.util.BasicEList.addUnique(BasicEList.java:661)
>       at 
> org.eclipse.emf.common.notify.impl.NotifyingListImpl.doAddUnique(NotifyingListImpl.java:384)
>       at 
> org.eclipse.emf.common.notify.impl.NotifyingListImpl.addUnique(NotifyingListImpl.java:368)
>       at org.eclipse.emf.common.util.BasicEList.add(BasicEList.java:645)
>       at 
> org.eclipse.emf.ecore.util.BasicFeatureMap.doAdd(BasicFeatureMap.java:547)
>       at 
> org.eclipse.emf.ecore.util.BasicFeatureMap.add(BasicFeatureMap.java:1097)
>       at org.apache.tuscany.sdo.util.BasicSequence.add(BasicSequence.java:100)
>       at com.ibm.sdo.test.DefectTestApp.main(DefectTestApp.java:60)
> The add(String propertyName, Object value) method seems to be functioning 
> fine using the same Sequence object.  In tracing this issue through EMF, it 
> seems a validate method in the BasicFeatureMap object is failing in the base 
> case and throwing the exception.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to