Bug on Solaris

Martin Kahlert martin.kahlert@infineon.com
Tue Jan 8 00:46:00 GMT 2002


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?
$ gcj -v
Reading specs from
/home/kahlert/GCC/lib/gcc-lib/sparc-sun-solaris2.7/3.1/specs
Reading specs from
/home/kahlert/GCC/lib/gcc-lib/sparc-sun-solaris2.7/3.1/../../../libgcj.spec
rename spec lib to liborig
Configured with: ../gcc-20011231/configure --prefix=/home/kahlert/GCC
--enable-languages=c++,f77,java --enable-threads=posix
--with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld
Thread model: posix
gcc version 3.1 20011231 (experimental)
Thanks for any help in advance,
Martin.
-- 
The early bird catches the worm. If you want something else for 
breakfast, get up later.


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /