java.io/141
Jeff Sturm
jsturm@detroit.appnet.com
Fri Aug 11 09:16:00 GMT 2000
The following reply was made to PR java.io/141; it has been noted by GNATS.
From: Jeff Sturm <jsturm@detroit.appnet.com>
To: tromey@cygnus.com
Cc: Java Gnats Server <java-gnats@sourceware.cygnus.com>,
Warren Levy <warrenl@cygnus.com>
Subject: Re: java.io/141
Date: Fri, 11 Aug 2000 12:19:21 -0400
Tom Tromey wrote:
> I believe the JDK is wrong.
> If you follow the JLS definition of a floating point constant, `.' is
> not one.
That sounds right.
> Alternatively, one could argue that compatibility is important here,
> and that the StreamTokenizer definition of a number is different from
> the JLS definition.
Since the JCL doesn't really say how `.' should be scanned, you can make an
argument either way. (I don't really want `.' to be scanned as a number, but I
can live with it.)
IIRC an exception was getting thrown when I tried to scan some source code with
StreamTokenizer. That made StreamTokenizer useless for me. I don't think
nextToken() should ever throw an exception other than IOException. Perhaps I
should have stated that in the bug report.
--
Jeff Sturm
jeff.sturm@appnet.com
More information about the Java-prs
mailing list