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

Allow CompositeDataSupport to have zero items

    Details

    • Subcomponent:
    • Resolved In Build:
      b41
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Verified

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: