This is the mail archive of the mauve-discuss@sources.redhat.com mailing list for the Mauve project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: bug in DoubleTest, FloatTest


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]