Skip to content

Getting ill (?) formatted config back from webapp #3935

Answered by vladak
aerofeev2k asked this question in Q&A
Discussion options

You must be logged in to vote

As long as the configuration can be de-serialized the format is fine. It's the way XML serializer works in Java. The idref replaces object containment with object reference.

https://docs.oracle.com/javase/7/docs/api/java/beans/XMLEncoder.html says:

XML's standard "id" and "idref" attributes are used to make references to previous expressions - so as to deal with circularities in the object graph.

Also see https://docs.oracle.com/javase/8/docs/api/javax/xml/bind/annotation/XmlIDREF.html

This is just one of the cons of the XML serialization. #2329 tracks the replacement of the serialization scheme.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

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

@vladak
Comment options

Answer selected by vladak
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