This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Bug on Solaris
- From: Andrew Haley <aph at cambridge dot redhat dot com>
- To: martin dot kahlert at infineon dot com
- Cc: java at gcc dot gnu dot org
- Date: Tue, 8 Jan 2002 09:17:07 +0000 (GMT)
- Subject: Bug on Solaris
- References: <20020108094605.A30024@keksy.muc.infineon.com>
Martin Kahlert writes:
> Hi!
> I continue struggling to compile my application on Solaris.
> It compiles finally, but does not work correctly. Here is a small
> test case:
>
> $ cat hello.java
> public class hello
> {
> public static void main(String[] args)
> {
> System.out.println("Double.MIN_VALUE = " + Double.MIN_VALUE);
> System.out.println("Double.MAX_VALUE = " + Double.MAX_VALUE);
> }
> }
>
> $ gcj --encoding=UTF-8 -o hello hello.java --main=hello
> $ ./hello
> Double.MIN_VALUE = 0.0
> Double.MAX_VALUE = 5.0E-324
>
> On Linux i get a better result:
> Double.MIN_VALUE = 5.0E-324
> Double.MAX_VALUE = 1.7976931348623157E308
>
> Can anybody tell my, what went wrong here?
Um, looks like a compiler problem. Maybe.
Can you try the above test with doubleToLongBits() as well, so we can
see what is going on.
Andrew.