RFR: 8377514: jpackage: support passing multiple exceptions to the top-level error handler

Alexey Semenyuk asemenyuk at openjdk.org
Tue Feb 10 04:26:44 UTC 2026


Make the top-level error reporter handle suppressed exceptions.

The bundling code may use the suppressed exceptions mechanism to report multiple error conditions.

Rework reporting of multiple signing identity errors using the new mechanism, simplified `MacFromOptions.createMacPkgPackage()`.

Additionally:
 - Simplified AppImageSigningConfigBuilder and SigningIdentityBuilder

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

Commit messages:
 - Improve multiple expired certificate errors reporting in MacFromOptions#createMacPkgPackage(). Streamline SigningIdentityBuilder; Tighten up MacSignTest.
 - cli/Main: support reporting suppressed exceptions. This allows to report all error messages in the cases when they use suppressed exceptions to communicate multiple errors

Changes: https://git.openjdk.org/jdk/pull/29643/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=29643&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8377514
  Stats: 711 lines in 11 files changed: 444 ins; 80 del; 187 mod
  Patch: https://git.openjdk.org/jdk/pull/29643.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/29643/head:pull/29643

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


More information about the core-libs-dev mailing list