Uploaded image for project: 'XBean'
  1. XBean
  2. XBEAN-138

List of complex type results in any with content ##other which is broken for activemq.xds

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 3.6
    • None
    • spring
    • None

    Description

      there is a problem with the auto generation of ActiveMQ configuration schema (activemq.xsd) and any content generated for a complexType containing a List and would like to have ActiveMQ 5.3 use 3.6.

      For example the generated content :
      <xs:element name='policyEntries' minOccurs='0' maxOccurs='1'>
      <xs:annotation>
      <xs:documentation><![CDATA[
      Sets the individual entries on the policy map
      ]]></xs:documentation>
      </xs:annotation>
      <xs:complexType>
      <xs:sequence minOccurs='0' maxOccurs='unbounded'><xs:any namespace='##other'/></xs:sequence>
      </xs:complexType>
      </xs:element>

      should be (without the namespace ##other qualifier on the content) :

      <xs:element name='policyEntries' minOccurs='0' maxOccurs='1'>
      <xs:annotation>
      <xs:documentation><![CDATA[
      Sets the individual entries on the policy map
      ]]></xs:documentation>
      </xs:annotation>
      <xs:complexType>
      <xs:sequence minOccurs='0' maxOccurs='unbounded'><xs:any minOccurs='0' maxOccurs='unbounded'/></xs:sequence>
      </xs:complexType>
      </xs:element>

      Such that a policyEntry from the same namespace is valid.

      This is generated from:

      /**

      • Sets the individual entries on the policy map
        *
      • @org.apache.xbean.ElementType class="org.apache.activemq.broker.region.policy.PolicyEntry"
        */
        public void setPolicyEntries(List entries) {

      @ http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/policy/PolicyMap.java?view=markup

      Attachments

        Activity

          People

            Unassigned Unassigned
            gtully Gary Tully
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: