You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Richard Liang (JIRA)" <ji...@apache.org> on 2006/11/24 07:02:03 UTC

[jira] Resolved: (HARMONY-2257) [classlib][luni]should throw ClassCastException when get value with an non String parameter in env Map.

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

Richard Liang resolved HARMONY-2257.
------------------------------------

    Resolution: Fixed

Hello Tony,

The patch is applied at revision r478775, thanks a lot for this enhancement, please verify that the problem is fully fixed as you expected.

Best regards,
Richard

> [classlib][luni]should throw ClassCastException when get value with an non String parameter in env Map.
> -------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2257
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2257
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Tony Wu
>         Assigned To: Richard Liang
>         Attachments: harmony-2257.diff
>
>
> The testcase below failed on Harmony but passed on RI,
> ProcessBuilder pb = new ProcessBuilder("Arg1", "Arg2", "Arg3");
> Map<String, String> env = pb.environment();
> try {
>       env.get(new Object());
>       fail("should throw ClassCastException.");
> } catch (ClassCastException e) {
>       // expected;
> }

-- 
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