bug in java.io.StreamTokenizer.nextToken
Brian Burton
brian at burton-computer.com
Wed Jul 15 12:28:02 PDT 1998
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
More information about the kaffe
mailing list