You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Kevin Zhou (JIRA)" <ji...@apache.org> on 2009/04/09 04:33:12 UTC

[jira] Created: (HARMONY-6142) [classlib][luni] java.util.StringTokenizer.nextToken(String delim) should throw NullPointerException when the given delim is null

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


[jira] Commented: (HARMONY-6142) [classlib][luni] java.util.StringTokenizer.nextToken(String delim) should throw NullPointerException when the given delim is null

Posted by "Kevin Zhou (JIRA)" <ji...@apache.org>.
    [ 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.


[jira] Updated: (HARMONY-6142) [classlib][luni] java.util.StringTokenizer.nextToken(String delim) should throw NullPointerException when the given delim is null

Posted by "Kevin Zhou (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-6142?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kevin Zhou updated HARMONY-6142:
--------------------------------

    Attachment: HARMONY-6142.diff

Would you please help to try it?

> [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
>
>         Attachments: HARMONY-6142.diff
>
>
> 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.


[jira] Closed: (HARMONY-6142) [classlib][luni] java.util.StringTokenizer.nextToken(String delim) should throw NullPointerException when the given delim is null

Posted by "Kevin Zhou (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-6142?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kevin Zhou closed HARMONY-6142.
-------------------------------


Thanks, Tim.

> [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
>            Assignee: Tim Ellison
>             Fix For: 5.0M9
>
>         Attachments: HARMONY-6142.diff
>
>
> 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.


[jira] Assigned: (HARMONY-6142) [classlib][luni] java.util.StringTokenizer.nextToken(String delim) should throw NullPointerException when the given delim is null

Posted by "Tim Ellison (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-6142?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tim Ellison reassigned HARMONY-6142:
------------------------------------

    Assignee: Tim Ellison

> [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
>            Assignee: Tim Ellison
>             Fix For: 5.0M9
>
>         Attachments: HARMONY-6142.diff
>
>
> 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.


[jira] Resolved: (HARMONY-6142) [classlib][luni] java.util.StringTokenizer.nextToken(String delim) should throw NullPointerException when the given delim is null

Posted by "Tim Ellison (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-6142?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tim Ellison resolved HARMONY-6142.
----------------------------------

    Resolution: Fixed

Thanks Kevin.

Patch applied to LUNI module at repo revision r768935.

Please check it was applied as you 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
>            Assignee: Tim Ellison
>             Fix For: 5.0M9
>
>         Attachments: HARMONY-6142.diff
>
>
> 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.