On Tue, 28 Feb 2023 19:09:00 GMT, Eirik Bjorsnos <d...@openjdk.org> wrote:

> The `-altsigner` and `-altsignerpath` options in JarSigner with the 
> underlying `ContentSigner` mechanism were deprected in Java 9, for removal in 
> Java 15. See [JDK-8076535](https://bugs.openjdk.org/browse/JDK-8076535), 
> [JDK-8242260](https://bugs.openjdk.org/browse/JDK-8242260).
> 
> This PR suggests it's time to remove this code:
> 
> - The package `com/sun/jarsigner` is removed. This contained the 
> `ContentSigner` and `ContentSignerParameters` along with a 
> `package-info.java` file.
> - `JarSigner.java` is updated to remove processing of the `-altsigner` and 
> `-altsignerpath` options and the loading and processing of the custom 
> `ContentSigner`.
> - Similarly `c.s.s.t.jarsigner.Main` is updated to remove processing and 
> mentioning of `-altsigner` and `-altsignerpath` options.
> - Mentions of the options in Resource files in the same directory is removed
> - The `jarsigner.1` man page is updated to remove the section on the 
> deprecated options
> - The `Spec` and `Options` tests are update to remove usage of the 
> `-altsigner` and `-altsignerpath` options.

I noticed that the `-altsigner` and `-altsigner` were deprectated for removal 
in JDK 15, but their `@Deprecated` annotations say `since="16"`.  Is 
inconsistency something we need to worry about?


@Deprecated(since="16", forRemoval=true)
private final String altSignerPath;
@Deprecated(since="16", forRemoval=true)
private final String altSigner;

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

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

Reply via email to