jaxb
  1. jaxb
  2. JAXB-598

Sorting of methods in generated ObjectFactory classes

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.9
    • Fix Version/s: 2.2.11
    • Component/s: xjc
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      598

      Description

      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.

        Activity

        Hide
        fowlie added a comment -

        This issue seems quite old, yet no fix for it. How about prioritizing it?

        Me and my team would love to have this fixed! Our deployment tool detects changes with checksums, and to avoid having stub classes in source control, we generate them on the fly, thus everything gets deployed all the time, it's very annoying and time consuming.

        Show
        fowlie added a comment - This issue seems quite old, yet no fix for it. How about prioritizing it? Me and my team would love to have this fixed! Our deployment tool detects changes with checksums, and to avoid having stub classes in source control, we generate them on the fly, thus everything gets deployed all the time, it's very annoying and time consuming.
        Hide
        Christian Sisti added a comment -

        Quoting fowlie.

        Show
        Christian Sisti added a comment - Quoting fowlie.
        Hide
        Iaroslav Savytskyi added a comment -

        Fixed in JAXB 2.2.11

        Show
        Iaroslav Savytskyi added a comment - Fixed in JAXB 2.2.11

          People

          • Assignee:
            Iaroslav Savytskyi
            Reporter:
            normann1974
          • Votes:
            7 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: