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

ImmutableDescriptor.getFieldValues(non-empty-array) on an empty descriptor returns unexpected array

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 6
    • Fix Version/s: 6
    • Component/s: core-svc
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b47
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Verified

      Description

      modelmbean.DescriptorSupport behaves as expected but ImmutableDescriptor not despite the method under test is defined in the Descriptor interface they both implement.
      The failing test case is based on the javadoc sentence "If the descriptor is empty, you will get an empty array.".
      The test does:

      Descriptor descr = new ImmutableDescriptor(new String[]{}, new Object[]{});
      descr.getFieldValues(new String[]{"missing", "in", "action"}).

      I put here the JCK test output :

      (TEST) Retrieval with a non empty array on an empty Descriptor
      (ERROR) Field values not as expected
       GOT = [null, null, null]
       EXPECTED = []


      ###@###.### 2005-05-20 16:31:24 GMT

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: