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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • 6
    • 6
    • core-svc
    • b47
    • generic
    • generic
    • 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

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

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: