David Hearnden is having trouble with EMF and damn-it if I’m not having exactly the same problem and debugging experience. Debugging this stuff is like trying to debug interpreted code by single-stepping through the interpreter!
[update: It seems that the problem is not with the serialisation, but that the Resource "contains" the objects twice. How does this happen? First the objects are added to the Resource with getContents().add(objectx), then later something like object1.setParent(object2) is called where parent is a containment relationship. Thus, the resource "directly" contains object1 and object2 but also transitively contains object1 via the containment from object2.
The real question is "why?". In earlier versions of Tefkat this did not happen. When the transitive containment was established the direct containment was removed (I think -- it could be that the serialisation was smart and ignored the duplicates). Either way, this is something that's crept into EMF in one of the more recent releases (2.2.0 or 2.2.1 maybe?). So far, no joy on tracking down the real root of the regression.]
Post a Comment
You must be logged in to post a comment.