RFR: 8048190: NoClassDefFoundError omits original ExceptionInInitializerError [v10]

Coleen Phillimore coleenp at openjdk.java.net
Thu Aug 12 01:03:30 UTC 2021


On Wed, 11 Aug 2021 20:45:30 GMT, Ioi Lam <iklam at openjdk.org> wrote:

>> Coleen Phillimore has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   fix typo in EIIE message.
>
> src/hotspot/share/oops/instanceKlass.cpp line 1028:
> 
>> 1026:   // this would be still be helpful.
>> 1027:   Handle cause = java_lang_Throwable::get_cause_with_stack_trace(exception, THREAD);
>> 1028:   CLEAR_PENDING_EXCEPTION;
> 
> If new exceptions happened inside `get_cause_with_stack_trace`, `cause` will be null here. Maybe proceed to the following only if `cause` is not null?

I thought of doing that also, but now can't remember why I didn't do it that way.  Fixed.

-------------

PR: https://git.openjdk.java.net/jdk/pull/4996


More information about the hotspot-dev mailing list