"An unexpected error" when i run class with constructorcreatingitself. (jdk1.5.0-p2)

Manfred Riem mriem at manorrock.org
Sun Oct 23 17:50:35 PDT 2005


"Steve Joynt" <steve.joynt at gmail.com> wrote in message 
news:17dbe5f00510231619u1eb684bat at mail.gmail.com...
On 24/10/05, Manfred Riem <mriem at manorrock.org> 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 at freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-java
To unsubscribe, send any mail to "freebsd-java-unsubscribe at 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 at manorrock.org
http://www.manorrock.org/





More information about the freebsd-java mailing list