Uploaded image for project: 'Harmony'
  1. Harmony
  2. HARMONY-2882

[classlib][security]PKIXParameters.setDate(null) has no effect on the original date value on RI but Harmony sets it to null.

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • None
    • Patch Available
    • Novice

    Description

      Here is a testcase:

      public void testSetDate()
      {
      Set taSet = TestUtils.getTrustAnchorSet();
      PKIXParameters p = new PKIXParameters(taSet);
      Date toBeSet = new Date(555L);
      p.setDate(toBeSet);

      p.setDate(null);
      assertEquals(555L, p.getDate().getTime());
      }

      RI passes.
      Harmony fails.

      Attachments

        1. patch-2882.diff
          1 kB
          Leo Li

        Activity

          People

            smm Stepan Mishura
            liyilei1979@gmail.com Leo Li
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment