harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kevin Zhou (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-6142) [classlib][luni] java.util.StringTokenizer.nextToken(String delim) should throw NullPointerException when the given delim is null
Date Thu, 09 Apr 2009 02:37:13 GMT

    [ https://issues.apache.org/jira/browse/HARMONY-6142?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12697370#action_12697370
] 

Kevin Zhou commented on HARMONY-6142:
-------------------------------------

Given a test case [1], RI passes while HY fails on it.

[1] Test Case:
public void test_nextTokenLjava_lang_String() {
    StringTokenizer stringTokenizer = new StringTokenizer(new String());
    try {
        stringTokenizer.nextToken(null);
        fail("should throw NullPointerException");
    } catch (NullPointerException e) {
        // Expected
    }
}

> [classlib][luni] java.util.StringTokenizer.nextToken(String delim) should throw NullPointerException
when the given delim is null
> ---------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-6142
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6142
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>    Affects Versions: 5.0M8
>            Reporter: Kevin Zhou
>             Fix For: 5.0M9
>
>
> The java spec says that the nextToken(String delim) method should throw NullPointerException
when the given delim is null.
> It seems that HY doesn't have this feature implemented here.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message