harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leo Li (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-2882) [classlib][security]PKIXParameters.setDate(null) has no effect on the original date value on RI but Harmony sets it to null.
Date Thu, 28 Dec 2006 01:33:23 GMT
    [ http://issues.apache.org/jira/browse/HARMONY-2882?page=comments#action_12461132 ] 
            
Leo Li commented on HARMONY-2882:
---------------------------------

Hi, Stepan:
      I think it is OK to mark it as non-bug difference since currently we have no indications
that application will depend on this behavior.(Actually I agree with you that the currenttime
should be set, but RI ...)

Thanks,
Leo.

> [classlib][security]PKIXParameters.setDate(null) has no effect on the original date value
on RI but Harmony sets it to null.
> ----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2882
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2882
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Leo Li
>         Assigned To: Stepan Mishura
>         Attachments: patch-2882.diff
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message