Skip to content
Discussion options

You must be logged in to vote

I'm not sure from where exactly the non-determistic behavior comes because you've not shown any reproducible examples nor samples of serializations that are difference in some way.

Maybe this map in org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.getEObjectToExtensionMap() should be a LinkedHashMap

  public Map<EObject, AnyType> getEObjectToExtensionMap()
  {
    if (eObjectToExtensionMap == null)
    {
      eObjectToExtensionMap = new HashMap<EObject, AnyType>();
    }
    return eObjectToExtensionMap;
  }

Perhaps the ID map as well, but I don't know how the ID map's order has any impact on serialization; I think it does...

Can you try in an override as the only change:

  public Map<EOb…

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
2 replies
@Surcouf01
Comment options

@Surcouf01
Comment options

Comment options

You must be logged in to vote
6 replies
@Surcouf01
Comment options

@merks
Comment options

merks Apr 3, 2025
Maintainer

Answer selected by Surcouf01
@Surcouf01
Comment options

@Surcouf01
Comment options

@merks
Comment options

merks Apr 4, 2025
Maintainer

@merks
Comment options

merks Apr 8, 2025
Maintainer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants