classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cp-patches] Report #4742: the patch is easy to make, but should we


From: Michael Koch
Subject: Re: [cp-patches] Report #4742: the patch is easy to make, but should we really fix that bug?
Date: Mon, 28 Feb 2005 16:41:15 +0100
User-agent: mutt-ng 1.5.8i (Debian)

On Mon, Feb 28, 2005 at 04:09:54PM +0100, Meskauskas Audrius wrote:
> The bug #4742 contains a comprehensive test, verifying the work of
> StreamTokenizer by parsing randomly generated data under randomly set 
> options. It reveals the single difference
> between the Sun and Classpath implementations. If the numeric character 
> ('0'..'9') obtains a specific status of
> comment, whitespace or some other character, Sun's implementation
> only treats it as such if found standing alone or in the beginning
> of the multi - character number. If the number parsing has once
> started, the digits in that number are trated as digits regardless
> of they spacific status. For example, after calling whitespaceChars('1', 
> '1'), it reads "121" as 21 while Classpatch implementation reads it as "2", 
> of 
> course.
> 
> It is a piece of cake to make a patch for reproducing this
> behavior. The StreamTokenizer has many Mauve tests and it is easy to ensure 
> this does not introduce any obvious regressions.
> 
> The question is, to fix of not to fix? A bug or not a bug?
> In any case, 4742 can be closed either as "not a bug" or as
> "fixed".
> 
> P.S. The current Classpath implementation also reads
> 121 in "Sun style" (as 21) if parseNumbers() are called AFTER
> and not before the whitespaceChars('1', '1'). Further work would be needed to 
> make parsing independent from the order, in that the properties were set.
 
This should have been attached to the bug report or at least put a
reference to this thread to the bug report.

I dont wanna comment on the patch yet as I have no time to try it right
now.


Michael
-- 
Java Trap: http://www.gnu.org/philosophy/java-trap.html




reply via email to

[Prev in Thread] Current Thread [Next in Thread]