"An unexpected error" when i run class with constructor
creatingitself. (jdk1.5.0-p2)
Steve Joynt
steve.joynt at gmail.com
Sun Oct 23 16:19:42 PDT 2005
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
More information about the freebsd-java
mailing list