Date: Sun, 12 Mar 2000 04:10:13 +0100 (MET) From: Martin Dieringer <dieringe@physik.fu-berlin.de> To: Andrew Atrens <atrens@nortelnetworks.com> Cc: Nate Williams <nate@yogotech.com>, freebsd-java@FreeBSD.ORG Subject: Re: bug - `try' doesn't catch sigfpe Message-ID: <Pine.OSF.4.10.10003120405570.3279-100000@sirius.physik.fu-berlin.de> In-Reply-To: <Pine.BSF.4.21.0003112009190.1015-100000@hcarp00g.ca.nortel.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 11 Mar 2000, Andrew Atrens wrote:
> FreeBSD churchill 4.0-CURRENT FreeBSD 4.0-CURRENT #1: Wed Mar 8 17:56:36
> EST 2000 root@churchill:/usr/local/src/sys/compile/CHURCHILL i386
>
> and this -
>
> jdk1.1.8_ELF.V1999-11-9.tar.gz
FreeBSD 4.0-CURRENT #33
and the same (I think) jdk:
same thing, but no problem with
TYA 1.6 (J11) Copyright (c) 1997-2000 Albrecht Kleine
where the exception is thrown correctly
martin
>
>
> This little class tickles the bug -
>
>
> class sigfpe {
>
> void fpe() {
> int a, b;
> a = 7; b = 0;
> try {
> a = a / b;
> return; // fail
> } catch (java.lang.Exception x) {
> // pass
> }
> return;
> }
>
> public static void main(String[] args) {
> sigfpe foo = new sigfpe();
> foo.fpe();
> }
> }
>
>
> Andrew.
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-java" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.OSF.4.10.10003120405570.3279-100000>
