bug in java.io.StreamTokenizer.nextToken
Brian Burton
kaffe@rufus.w3.org
Wed, 15 Jul 1998 15:28:02 -0400
Brian Burton wrote:
>
> StreamTokenizer in kaffe 1.0.b1 is broken. Specifically, the JDK 1.1.5
> javadoc says that when a quoted string is encountered, nextToken() will
> return (and set ttype to) the string delimiter. But StreamTokenizer
> sets ttype to TT_WORD. The fix is trivial.
>
In fact, here is the fix.
++Brian
diff -r1.1 StreamTokenizer.java
157a158
> ttype = chr;
165d165
< ttype = TT_WORD;
--
Brian Burton Custom Software Development
Burton Computer Corporation Java, C++, Orbix, Tuxedo
http://www.burton-computer.com OO Consulting and Mentoring