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/08/24 08:51:13 UTC

[jira] Updated: (HARMONY-1262) [classlib][luni] StreamTokenizer does not work with block comments

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

Richard Liang updated HARMONY-1262:
-----------------------------------

    Attachment: Harmony-1262.diff

Hello,

I try to fix this issue. Would you please try this patch? Thanks a lot.

Best regards,
Richard

> [classlib][luni] StreamTokenizer does not work with block comments
> ------------------------------------------------------------------
>
>                 Key: HARMONY-1262
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1262
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Mikhail Loenko
>         Attachments: Harmony-1262.diff
>
>
> Here is the test
> import java.io.*;
> public class a {
>    static public void main(String[] args) throws Exception {
>         Reader r = new CharArrayReader( "t /* c */ t t t".toCharArray());
>         StreamTokenizer st = new StreamTokenizer(r);
>         st.slashStarComments(true);
>         int i = st.nextToken();
>         while (i != -1) {
>             System.out.println(i);
>             i = st.nextToken();
>         }
>    }
> }
> Output on Harmony
> -3
> Output on RI
> -3
> -3
> -3
> -3

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