|Adding to DerivedEObjectEList gives UnsupportedOperationException, apparently new since EMF 2.3 [message #590726]
||Mon, 26 February 2007 10:09
Registered: July 2009
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 java.util.AbstractSequentialList.add(Unknown Source)
at java.util.AbstractList.add(Unknown Source)
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?
Powered by FUDForum
. Page generated in 0.02265 seconds