Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6752563

Allow CompositeDataSupport to have zero items

XMLWordPrintable

    • b41
    • generic
    • generic
    • Verified

      RFE 6405862 changed CompositeType so that it can now have zero items. This follows 5072004, which allows a CompositeData to have additional items beyond the ones that are declared in the CompositeType, and that is the principal intended use of the change. Nevertheless, it seems odd to require that a CompositeType with zero items *must* be associated with additional items in the CompositeData. In other words, there is now a corner case where if the set of additional items happens to be zero the CompositeData will be rejected.

      The proposed change is to remove the constraint whereby the items given to either of the CompositeDataSupport constructors must not be empty.

            emcmanus Eamonn McManus
            emcmanus Eamonn McManus
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: