jaxb
  1. jaxb
  2. JAXB-823

XJC generates wrong attribute/elementFormDefault annotation values from schema

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.2
    • Fix Version/s: None
    • Component/s: xjc
    • Labels:
      None
    • Environment:

      Windows Vista - not much here is important

      Description

      When generating classes from a schema, regardless of the attribute/elementFormDefault settings, the package annotation is generated as:

      @javax.xml.bind.annotation.XmlSchema(namespace = "http://www.example.org/test" /* my example namespace */, elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED)
      package test; /* my example package */

      The annotation values should reflect the actual settings of the schema.

        Activity

        Hide
        pwfullbright added a comment -

        Martin, is this in fact a bug? Am I understanding this correctly?

        Show
        pwfullbright added a comment - Martin, is this in fact a bug? Am I understanding this correctly?
        Hide
        Martin Grebac added a comment -

        Yes, minor one. The code shall reflect the settings in schema file, as well as defaults shall be preserved - meaning not to generate code for default setting.

        Show
        Martin Grebac added a comment - Yes, minor one. The code shall reflect the settings in schema file, as well as defaults shall be preserved - meaning not to generate code for default setting.

          People

          • Assignee:
            Martin Grebac
            Reporter:
            pwfullbright
          • Votes:
            2 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: