Code review request: 6973831 NPE when printing stack trace of OOME
mandy.chung at oracle.com
Thu Aug 12 16:22:52 PDT 2010
David, Brian, Remi,
Thanks for the review.
On 08/12/10 12:00, Rémi Forax wrote:
>> The "detailMessage" is not final because the VM in fact preallocates
>> Throwable object (OOME and ArithmeticException) and then sets the
>> 'detailMessage' field directly (as the constructor is not invoked).
> I am pretty sure the VM can set this field even if it is declared final.
> I think I don't see the problem.
I will file a CR to address this and separate from this bug fix. I
believe that the VM has no problem setting this field even if it's
declared final. I may be overly cautious but I think we need the VM
team to evaluate this.
More information about the core-libs-dev