This is the mail archive of the
mailing list for the Mauve project.
- From: Daryl Lee <dlee at altaregos dot com>
- To: Mauve Discuss <mauve-discuss at sources dot redhat dot com>
- Date: Sat, 14 Sep 2002 18:26:18 -0400
- Subject: StreamTokenizer
I believe the following patch might be useful in gnu/testlet/java/io/StreamTokenizer/Test.java.
< tokenize (harness, "(a).(b)", x1);
> tokenize (harness, "(a)5(b)", x1);
(This is a straight diff, not a CVS diff; I've never submitted a patch, so someone tell me if this is the wrong protocol.)
The original string causes classpath's number parser to fail, trying to parse a bare '.'. (See §3.10.2 of the Java Language Specification.) I believe a better solution is to make StreamTokenizer handle the NumberFormatException thrown by Double, but that is an argument for others to conduct.