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] Created: (HARMONY-1262) [classlib][luni] StreamTokenizer does not work with block comments
Date Wed, 23 Aug 2006 04:54:14 GMT
[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


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