This is the mail archive of the
mauve-discuss@sources.redhat.com
mailing list for the Mauve project.
Re: bug in DoubleTest, FloatTest
- From: Dalibor Topic <robilad at yahoo dot com>
- To: Eric Blake <ebb9 at email dot byu dot edu>
- Cc: mauve-discuss at sources dot redhat dot com
- Date: Tue, 5 Nov 2002 07:24:11 -0800 (PST)
- Subject: Re: bug in DoubleTest, FloatTest
A quick look at the change log ... yes, it might be
fixed. I need to update my sources.
2002-09-26 Stephen Crawley <crawley@dstc.edu.au>
* gnu/testlet/java/lang/Double/DoubleTest.java
(test_shortbyteValue):
Reverted test for truncation in byteValue() to
match JDK 1.4 spec
and implementation. [This was incorrectly
'fixed' on 2002-06-13.]
* gnu/testlet/java/lang/Float/FloatTest.java
(test_shortbyteValue):
ditto
--- Eric Blake <ebb9@email.byu.edu> wrote:
> This very bug was raised about a month ago. I'm
> surprised it hasn't been
> fixed yet, but go ahead and fix it.
>
> Dalibor Topic wrote:
> > Hi,
> >
> > I think I've found a bug in mauve tests for
> > java.lang.Double and java.lang.Float. the
> > shortbytevalue test nr. 5 assumes that the
> truncated
> > byte value of a Float/Double created with 400.35
> is
> > equal to 127, when it is -112 on both kaffe and
> > JDK1.3.1.
> >
> > double d = 400.35;
> > System.out.println((byte) d);
> >
> > also prints out -112 on both environments.
> >
> > I can send you a patch for
> > gnu/testlet/java/lang/Double/DoubleTest.java and
> > gnu/testlet/java/lang/Double/FloatTest.java, if
> you
> > need one. It should be trivial fix.
> >
> > best regards,
> >
> > dalibor topic
> >
> > __________________________________________________
> > Do you Yahoo!?
> > HotJobs - Search new jobs daily now
> > http://hotjobs.yahoo.com/
> >
>
>
> --
> This signature intentionally left boring.
>
> Eric Blake ebb9@email.byu.edu
> BYU student, free software programmer
>
>
__________________________________________________
Do you Yahoo!?
HotJobs - Search new jobs daily now
http://hotjobs.yahoo.com/