Skip to content

jlink deprecation warning for --compress '2' parameter on JDK21 #383

@streamingdv

Description

@streamingdv

I'm submitting a…

  • bug report
  • feature request
  • other

Short description of the issue/suggestion:

Deprecation warning is printed by jlink when used on a computer with JDK 21 installed

Steps to reproduce the issue/enhancement:

Use javapackger on a machine where JAVA_HOME is set to JDK 21

What is the expected behavior?

Ideally no deprecation warnings

What is the current behavior?

jlink produces following warning:

The 2 argument for --compress is deprecated and may be removed in a future release

Please tell us about your environment:

  • JavaPackager version: 1.7.5
  • OS version: Windows 11
  • JDK version: openjdk 21.0.1 2023-10-17 LTS
  • Build tool:
    • Maven
    • Gradle

Other information (e.g. related issues, suggestions how to fix, links for us to have context)

https://nipafx.dev/road-to-21-upgrade/#tools

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestfeedbackWaiting for feedbackfixedIssue fixed and release pending

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions