JDK-8169102 : XJC compiler produces unstable output given the same input
  • Type: Enhancement
  • Component: xml
  • Sub-Component: jaxb
  • Affected Version: 8,9
  • Priority: P4
  • Status: Closed
  • Resolution: Won't Fix
  • OS: generic
  • CPU: generic
  • Submitted: 2016-11-01
  • Updated: 2018-04-27
  • Resolved: 2018-04-27
Description
A DESCRIPTION OF THE REQUEST :
When given the same schema file, XJC produces Java source files with a slightly different order of fields.

JUSTIFICATION :
Stable XJC output can help reduce build times in large projects since there will be no unnecessary recompilations of Java source files generated by the XJC compiler.

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Give the same input, XJC should produce the same output (with an exception of optionally included timestamp) every time it runs.
ACTUAL -
The output varies slightly in the order of class fields.


Comments
The Java EE modules have been removed from the JDK. This issue is now being tracked via A DESCRIPTION OF THE REQUEST : When given the same schema file, XJC produces Java source files with a slightly different order of fields. JUSTIFICATION : Stable XJC output can help reduce build times in large projects since there will be no unnecessary recompilations of Java source files generated by the XJC compiler. EXPECTED VERSUS ACTUAL BEHAVIOR : EXPECTED - Give the same input, XJC should produce the same output (with an exception of optionally included timestamp) every time it runs. ACTUAL - The output varies slightly in the order of class fields.
27-04-2018