libgcj/8443: StringTokenizer does not return delimeters
Sun Nov 3 20:36:00 GMT 2002

>Number:         8443
>Category:       libgcj
>Synopsis:       StringTokenizer does not return delimeters
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Nov 03 20:36:00 PST 2002
>Originator:     Brian
>Release:        libgcj3 1:3.2.1-0pre3
Debian Sarge on i386
Although i specify in the StringTokenizer constructor that i want the delimiters returned as token, the nextToken() function does not do so.  It does return the correct number of tokens.  But for the tokens which are also delimiters, instead of returning the single character string -- one of the delimiters -- it returns an empty string.
Compile the code with gcj-3.2, run it with gij-3.2.  Compare the output with the output from using J2SDK1.4.
Let me know if you want me to work on a fix.

More information about the Gcc-bugs mailing list