This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Divide by zero does not throw exception for longs
- To: Aneesh Aggarwal <aneesha at granite dot hpl dot hp dot com>
- Subject: Divide by zero does not throw exception for longs
- From: Andrew Haley <aph at cambridge dot redhat dot com>
- Date: Tue, 12 Jun 2001 11:38:32 +0100 (BST)
- Cc: java at gcc dot gnu dot org
- References: <Pine.HPX.4.20.0106111332100.8888-100000@granite.hpl.hp.com>
Aneesh Aggarwal writes:
>
>
> This is the 3.1 version. When compiled with gcj, divide by zero does not
> exception for longs. For ints, however, it throws the exception.
That's strange: this case is explicitly tested for in
libjava/testsuite/libjava.lang/Divide_1.java. Can you try that
program on your system, please?
Thanks,
Andrew.