RFR: 8302491: NoClassDefFoundError omits the original cause of an error [v4]
Ilarion Nakonechnyy
inakonechnyy at openjdk.org
Fri Feb 24 22:18:54 UTC 2023
> 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.
Ilarion Nakonechnyy has updated the pull request incrementally with four additional commits since the last revision:
- reverting changes in cpCache.cpp
- Redesigned get_cause as create_initialization_error.
Corrected naming in testcase
- jcheck corrections
- Removed VM.compMode from test
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/12566/files
- new: https://git.openjdk.org/jdk/pull/12566/files/6df8bb1a..5c9c1ffe
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=12566&range=03
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=12566&range=02-03
Stats: 53 lines in 5 files changed: 0 ins; 16 del; 37 mod
Patch: https://git.openjdk.org/jdk/pull/12566.diff
Fetch: git fetch https://git.openjdk.org/jdk pull/12566/head:pull/12566
PR: https://git.openjdk.org/jdk/pull/12566
More information about the hotspot-dev
mailing list