Sorting of methods in generated ObjectFactory classes · Issue #598 · javaee/jaxb-v2 (original) (raw)

This repository was archived by the owner on Feb 5, 2019. It is now read-only.

This repository was archived by the owner on Feb 5, 2019. It is now read-only.

@glassfishrobot

Description

@glassfishrobot

When JAXB generated classes are under version control, it's more or less
impossible to see if a regeneration of the JAXB classes has introduced any
changes in the ObjectFactory class because the methods in this class are added
by XJC in random-like order and this leaves the file almost completely modified
according to the version control system. It would be nice if two invocations of
XJC would add the methods in the same order, e.g. by sorting them alphabetically.

Environment

Operating System: All
Platform: All

Affected Versions

[2.1.9]