Uploaded image for project: 'WS-Commons'
  1. WS-Commons
  2. WSCOMMONS-436

SchemaBuilder returns a null XmlSchemaAppInfo when appinfo element without source attribute

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • XmlSchema 1.4.3
    • XmlSchema 1.4.4
    • XmlSchema
    • None

    Description

      SchemaBuilder#handleAppInfo returns null if appinfo does not have a source attribute.

      In this example, the XmlSchemaAppInfo element returned is null:

      <xs:annotation>
      <xs:appinfo>
      <jaxb:schemaBindings>
      <jaxb:package name="com.abc.validation"/>
      </jaxb:schemaBindings>
      </xs:appinfo>
      </xs:annotation>

      In this one, it is returned correctly:

      <xs:annotation>
      <xs:appinfo source="anything">
      <jaxb:schemaBindings>
      <jaxb:package name="com.abc.validation"/>
      </jaxb:schemaBindings>
      </xs:appinfo>
      </xs:annotation>

      Attachments

        1. AnnotationDeepTest.java
          5 kB
          Fady Moussallam
        2. annotation-appinfo-no-source.xsd
          0.7 kB
          Fady Moussallam
        3. annotation-appinfo-deep.xsd
          0.7 kB
          Fady Moussallam

        Issue Links

          Activity

            People

              bmargulies Benson Margulies
              moussalf Fady Moussallam
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: