You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Mikhail Loenko (JIRA)" <ji...@apache.org> on 2006/08/23 06:54:14 UTC

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

[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

        

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

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

        

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

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

        

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

Posted by "Mikhail Loenko (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-1262?page=all ]

Mikhail Loenko reassigned HARMONY-1262:
---------------------------------------

    Assignee: Mikhail Loenko

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