From owner-freebsd-java@FreeBSD.ORG Mon Oct 24 00:50:35 2005 Return-Path: X-Original-To: freebsd-java@freebsd.org Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 257DD16A41F for ; Mon, 24 Oct 2005 00:50:35 +0000 (GMT) (envelope-from freebsd-java@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9EA5343D45 for ; Mon, 24 Oct 2005 00:50:34 +0000 (GMT) (envelope-from freebsd-java@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1ETqXB-0000n5-PN for freebsd-java@freebsd.org; Mon, 24 Oct 2005 02:49:53 +0200 Received: from pcp0010357714pcs.indpnd01.mo.comcast.net ([69.242.190.68]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 24 Oct 2005 02:49:53 +0200 Received: from mriem by pcp0010357714pcs.indpnd01.mo.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 24 Oct 2005 02:49:53 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-java@freebsd.org From: "Manfred Riem" Date: Sun, 23 Oct 2005 19:49:47 -0600 Lines: 34 Message-ID: References: <426b510c0510230351k718c38ffr43273a31204414e6@mail.gmail.com><17dbe5f00510231618g5e53edebt@mail.gmail.com> <17dbe5f00510231619u1eb684bat@mail.gmail.com> X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: pcp0010357714pcs.indpnd01.mo.comcast.net X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2670 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670 X-RFC2646: Format=Flowed; Original Sender: news Subject: Re: "An unexpected error" when i run class with constructorcreatingitself. (jdk1.5.0-p2) X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Oct 2005 00:50:35 -0000 "Steve Joynt" wrote in message news:17dbe5f00510231619u1eb684bat@mail.gmail.com... On 24/10/05, Manfred Riem wrote: > This is a completely normal error. You are recursive constructing an > object > in the constructor. This will always generate a StackOverflowError. Since > you are not catching Errors the VM can have a default implementation that > prints out a message (just like it does). I think his point is that in jdk1.4.2-p7 it prints out the StackOverflowError message as expected, but in jdk1.5.0-p2 it core dumps. - steve _______________________________________________ freebsd-java@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-java To unsubscribe, send any mail to "freebsd-java-unsubscribe@freebsd.org" Hi Steve, Whatever the VM will do on an uncaught error is up to the implementation. So dumping the stack trace when hitting a StackOverflowError is well within the specification of the JVM. That it is not the same as in 1.4.2 is something he didn't address. So I stand by my comments of before ;) Kind regards, Manfred Riem mriem@manorrock.org http://www.manorrock.org/