Code review request: 6973831 NPE when printing stack trace of OOME
Mandy Chung
mandy.chung at oracle.com
Thu Aug 12 23:22:52 UTC 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.
Thanks
Mandy
More information about the core-libs-dev
mailing list