Adding to DerivedEObjectEList gives UnsupportedOperationException, apparently new since EMF 2.3 [message #590726] |
Mon, 26 February 2007 10:09 |
JG Messages: 51 Registered: July 2009 |
Member |
|
|
Hi,
I am using the UML2 DerivedEObjectEList to manually implement some of my
model's associations as being derived from others. So far I was quite
happy with the result. When I first tried this class, I made some test
code, adding something through either association end of both the
derived association as well as the basic association from which I derive.
Now all out of sudden I receive an UnsupportedOperationException when I
try to add something to the derived list.
I am using UML 2.1M4 with EMF 2.3.0M4.
The stack trace looks like this:
Exception in thread "main" java.lang.UnsupportedOperationException
at
org.eclipse.uml2.common.util.DerivedEObjectEList$DerivedList Iterator.add(DerivedEObjectEList.java:274)
at java.util.AbstractSequentialList.add(Unknown Source)
at
org.eclipse.uml2.common.util.DerivedEObjectEList.addUnique(D erivedEObjectEList.java:656)
at
org.eclipse.uml2.common.util.DerivedEObjectEList.add(Derived EObjectEList.java:640)
at java.util.AbstractList.add(Unknown Source)
at
paladin.util.emf.EMFSQLHelper.attachUniqueConstraintToTable( EMFSQLHelper.java:126)
The last line is the method where I call add.
I am positive that I used add on derived lists before successfully, but
I think this was before I migrated to EMF 2.3 /UML 2.1 Could this be
the problem? Or anything else I am missing here?
Regards
JG
|
|
|
Powered by
FUDForum. Page generated in 0.02447 seconds