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

ImmutableDescriptor.union() no longer throws IllegalArgumentException in some case, starting b39

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 6
    • 6
    • core-svc
    • b43
    • generic
    • generic
    • Verified

      The test does an ImmutableDescriptor.union() on an Immutable descriptor and a modelmbean.DescriptorSupport descriptor with the same field name, equal case, and different values; it expects an IllegalArgumentException.
      IllegalArgumentException was thrown up to b38.
      With b39, we do not receive any exception.

      Test output is:

      (TEST) Two Immutable descriptor with the same field name, equal case, and different values
      (TEST) [{a=b}, {a=c}]
      (OK) Received IllegalArgumentException

      (TEST) Two modelmbean.DescriptorSupport descriptor with the same field name, equal case, and different values
      (TEST) [a=b, a=c]
      (OK) Received IllegalArgumentException

      (TEST) One Immutable descriptor and one modelmbean.DescriptorSupport descriptor with the same field name, equal case, and different values
      (TEST) [a=b, {a=c}]
      (ERROR) Did not receive IllegalArgumentException

      ###@###.### 2005-06-08 08:21:11 GMT

            emcmanus Eamonn McManus
            yjoan Yves Joan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: