You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Stepan Mishura (JIRA)" <ji...@apache.org> on 2006/12/16 12:28:23 UTC

[jira] Assigned: (HARMONY-2733) [java][security]AlgorithmParameters.getParamterSpec should throw NullPointerException if the input AlgorithmSpec class is null.

     [ http://issues.apache.org/jira/browse/HARMONY-2733?page=all ]

Stepan Mishura reassigned HARMONY-2733:
---------------------------------------

    Assignee: Stepan Mishura

> [java][security]AlgorithmParameters.getParamterSpec should throw NullPointerException if the input AlgorithmSpec class is null.
> -------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2733
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2733
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Leo Li
>         Assigned To: Stepan Mishura
>         Attachments: patch-2733.diff
>
>
> Here is a testcase:
> public void test_algorithmParameters_getParamterSpec() throws Exception {
> 		AlgorithmParameters algorithmParameters = AlgorithmParameters
> 				.getInstance("DSA");
> 		algorithmParameters.init(new DSAParameterSpec(BigInteger.ONE,
> 				BigInteger.ONE, BigInteger.ONE));
> 		try {
> 			algorithmParameters.getParameterSpec(null);
> 			fail("should throw NullPointerException");
> 		} catch (NullPointerException e) {
> 			// expected
> 		}
> 	}
> 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