Oliver Wong did not, in fact, write:
> > Amusingly enough, Sun's source code shows that the Thread.dumpStack
> > method does the same thing, except that it gives the Exception's
> > constructor a String parameter saying "Stack Trace".
That /is/ amusing.
But Oliver did write:
> I imagine this happened after lots of developpers asked for a way to
> get the stack trace and balked when Sun told them to just create a new
> Exception ("isn't that wasteful?!" they'd complain). So to placate them,
> Sun created this new method and everyone lived happily ever after.
Has the advantage too that the functionality is now available in the "right"
place. And Sun can, at a later date, move the actual implementation too.
-- chris