[jdk8u-dev] Integrated: 8309841: Jarsigner should print a warning if an entry is removed

Roman Marchenko rmarchenko at openjdk.org
Thu Mar 27 17:13:18 UTC 2025


On Mon, 10 Mar 2025 16:00:21 GMT, Roman Marchenko <rmarchenko at openjdk.org> wrote:

> This is backport of "8309841: Jarsigner should print a warning if an entry is removed"
> 
> Original patch does not apply cleanly to jdk8:
> - some minor conflicts in JDK code
> - files moved to appropriate locations
> - added the check in `jdk/src/share/classes/sun/security/tools/jarsigner/Main.java` at line 1196
> 
> in tests:
> - `ed25519` algorithm was replaced with `RSA` in `RemovedFiles.java`
> - `JarEntry copyEntry()` procedure was manually added to `JarUtils.java` to make `JarUtilsTest` working.
> - the tests were adapted to Java 8, including replaced `Path.of`, `Files.writeString`, package names, and arrays processing as well.
> 
> We need this fix in jdk8, as all versions have this issue with jarsigner.
> 
> New tests successfully ran locally on Linux, x86_64.

This pull request has now been integrated.

Changeset: b256b1a1
Author:    Roman Marchenko <rmarchenko at openjdk.org>
Committer: Andrew John Hughes <andrew at openjdk.org>
URL:       https://git.openjdk.org/jdk8u-dev/commit/b256b1a1ac5603d0103338fa3b00a55d77cc9db9
Stats:     246 lines in 5 files changed: 245 ins; 0 del; 1 mod

8309841: Jarsigner should print a warning if an entry is removed

Reviewed-by: andrew
Backport-of: bdfb41f977258831e4b0ceaef5d016d095ab6e7f

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

PR: https://git.openjdk.org/jdk8u-dev/pull/635


More information about the jdk8u-dev mailing list