Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-2094

Aegis schema generation doing arrays at two levels

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2
    • 2.2
    • Aegis Databinding
    • None

    Description

      TypeClassInfo.getMinOccurs(QName) isn't really implemented, and getMaxOccurs(QName) doesn't even exist!

      In an effort to work around this, I made the caller of this check directly for an element of Array type and retrieve the bounds. However, that check does not manage to mirror the logic that decides when to use an ArrayOf... type. So it ends up generating schema with maxOccurs at both levels. Oops. The fix has to be to actually make getMinOccurs work right and add the missing getMaxOccurs.

      The real fun here seems to be that a parameter with maxOccurs doesn't trigger an ArrayOf type correctly. Arggh.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: