harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mikhail Loenko (JIRA)" <j...@apache.org>
Subject [jira] Closed: (HARMONY-1262) [classlib][luni] StreamTokenizer does not work with block comments
Date Thu, 24 Aug 2006 20:14:51 GMT
     [ http://issues.apache.org/jira/browse/HARMONY-1262?page=all ]

Mikhail Loenko closed HARMONY-1262.
-----------------------------------

    Resolution: Fixed

it works!
Thanks for the patch Richard
applied in revision 434337

> [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
>         Assigned To: 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

        

Mime
View raw message