Import/Export translation issue with java 11

Description

Seems like java 9 introduced a bug in its management of XML indentation.

As explained in this post:
http://java9.wtf/xml-transformer/

The behavior of OutputKeys.INDENT=yes was changed for something that looks wrong.

For example, look at the change here for W_Store_Trl_es_CO.xml

This changed the exported xml from:

to

This new "indentation" behavior of java 9 sounds wrong, for example as discussed here:
https://github.com/nashwaan/xml-js/issues/14

CDATA is not a tag and can be used inline in text

The undesired data-corrupted result is, for example when importing that W_Store_Trl_es_CO.xml file in iDempiere, the record looks like this:

expected value:

Environment

None

Activity

Show:
Carlos Ruiz
January 9, 2019, 1:56 PM

Documenting further research:
apparently this problem was introduced here
http://hg.openjdk.java.net/jdk/jdk11/rev/857b5e6eef37

solving
https://bugs.java.com/bugdatabase/view_bug.do?bug_id=JDK-8087303

Fixed

Assignee

Carlos Ruiz

Reporter

Carlos Ruiz

Labels

None

Tested By

None

Components

Affects versions

Priority

Critical
Configure