From owner-freebsd-java Sat Oct 23 12:50:40 1999 Delivered-To: freebsd-java@freebsd.org Received: from moe.nycrc.net (gabriel.nycrc.net [209.73.202.66]) by hub.freebsd.org (Postfix) with SMTP id 0335714A07 for ; Sat, 23 Oct 1999 12:50:34 -0700 (PDT) (envelope-from vince@nycrc.net) Received: (qmail 1421 invoked by uid 1001); 23 Oct 1999 19:50:32 -0000 Date: Sat, 23 Oct 1999 15:50:32 -0400 From: Vince Gonzalez To: freebsd-java@freebsd.org Subject: Illegal instruction Message-ID: <19991023155032.A1350@moe.nycrc.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4i Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I'm not sure if this is a bug or not, but it sure looks like one. I wrote some code like this: public class MyPanel extends JPanel { public Component add(Component c) { doSomeStuff(); return add(c); // This is incorrect on purpose } } I know the line I've commented is incorrect (it should say super.add(c)). When this code is run, java_X bombs out with SIGILL and dumps core. I'm thinking that it should instead die with StackOverflowError. I can reproduce this very easily, with code very much like the above. {13}{vince@moe}$ java -version java_X version "1.1.8" {14}{vince@moe}$ uname -a FreeBSD moe.nycrc.net 3.3-RELEASE FreeBSD 3.3-RELEASE #1: Tue Oct 5 19:16:55 EDT 1999 root@moe.nycrc.net:/usr/src/sys/compile/MOE i386 Of course the answer might just be 'So don't do that.'. But I thought I'd post anyway. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message