Bugfix for java.io.StreamTokenizer

Archie Cobbs archie at whistle.com
Fri Dec 10 17:02:53 PST 1999


Dalibor Topic writes:
> the methods lineno() and toString() in StreamTokenizer
>  are buggy [1]. 
> 
> StreamTokenizer.lineno() should add 1 to the line
> number received from linein to comply to 22.14.23
> from the Java Language Specification (JLS). 
> StreamTokenizer.toString's return format didn't match
> the one specified in 22.14.24 for words, EOFs and
> EOLs. Also, no string was returned for tokens that
> were ordinary characters. The JLS doesn't really
> specify what the generated String is supposed to look
> like in that case, if I understand the spec correctly,
> so I patched kaffe's toString to do it the way Sun's
> toString does - it can't harm :)

Thanks, fixed.

-Archie

___________________________________________________________________________
Archie Cobbs   *   Whistle Communications, Inc.  *   http://www.whistle.com


More information about the kaffe mailing list