Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XJC compiler produces unstable output given the same input #1194

Open
Tomas-Kraus opened this issue Apr 27, 2018 · 3 comments
Open

XJC compiler produces unstable output given the same input #1194

Tomas-Kraus opened this issue Apr 27, 2018 · 3 comments

Comments

@Tomas-Kraus
Copy link
Member

Previously tracked via: https://bugs.openjdk.java.net/browse/JDK-8169102

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.

@Tomas-Kraus
Copy link
Member Author

@sebersole
Copy link

+1 - very annoying

@davidbelow
Copy link

Hi! Same here! A fix would be perfect. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants