Sequence.add(int index, String propertyName, Object value) is not functioning
correctly
---------------------------------------------------------------------------------------
Key: TUSCANY-931
URL: http://issues.apache.org/jira/browse/TUSCANY-931
Project: Tuscany
Issue Type: Bug
Components: Java SDO Implementation
Affects Versions: Java-M2, Java-Mx
Environment: No specific environment
Reporter: David T. Adcox
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.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]