Integrated: 8302491: NoClassDefFoundError omits the original cause of an error
Ilarion Nakonechnyy
inakonechnyy at openjdk.org
Mon Mar 13 17:29:44 UTC 2023
On Tue, 14 Feb 2023 21:58:01 GMT, Ilarion Nakonechnyy <inakonechnyy at openjdk.org> wrote:
> The proposed approach added a new function for getting the cause of an exception -`java_lang_Throwable::get_cause_simple `, that gets called within `InstanceKlass::add_initialization_error` if an old one `java_lang_Throwable::get_cause_with_stack_trace` didn't succeed because of an exception during the VM call. The simple function doesn't call the VM for getting a stack trace but fills in any other information about an exception.
>
> Besides that, the discovering information about an exception was added to `ConstantPoolCacheEntry::save_and_throw_indy_exc` function.
>
> Jtreg for reproducing the issue also was added to the commit.
> The commit was tested with tier1 tests.
This pull request has now been integrated.
Changeset: 56851075
Author: Ilarion Nakonechnyy <inakonechnyy at openjdk.org>
Committer: Coleen Phillimore <coleenp at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/5685107579f0f00b5eae881311315cec34c1ddcb
Stats: 57 lines in 3 files changed: 21 ins; 13 del; 23 mod
8302491: NoClassDefFoundError omits the original cause of an error
Reviewed-by: coleenp, dholmes
-------------
PR: https://git.openjdk.org/jdk/pull/12566
More information about the hotspot-dev
mailing list