RFR: 8368831: ResourceParsingClassHierarchyResolver.getClassInfo(ClassDesc) throws unspecified UncheckedIOException [v4]

Chen Liang liach at openjdk.org
Tue Sep 30 23:42:13 UTC 2025


> ClassHierarchyResolver provided by users may sporadically run into exceptions due to reasons out of control, such as UncheckedIOException caused by a bad zip header. We should specify that users are allowed to fail their CHR when they encounter a failure when they support a ClassDesc to avoid hiding errors.

Chen Liang has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains four additional commits since the last revision:

 - Merge branch 'master' of https://github.com/openjdk/jdk into doc/chr-exception
 - Update src/java.base/share/classes/jdk/internal/classfile/impl/ClassHierarchyImpl.java
   
   Co-authored-by: Adam Sotona <10807609+asotona at users.noreply.github.com>
 - Fix non-IAE propagation
 - Allow ClassHierarchyResolver to throw RuntimeException

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/27559/files
  - new: https://git.openjdk.org/jdk/pull/27559/files/b58d77b9..5f3762c5

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=27559&range=03
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=27559&range=02-03

  Stats: 1807 lines in 91 files changed: 653 ins; 246 del; 908 mod
  Patch: https://git.openjdk.org/jdk/pull/27559.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/27559/head:pull/27559

PR: https://git.openjdk.org/jdk/pull/27559


More information about the core-libs-dev mailing list