Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8234596

removal of Pack200 Tools and API

    XMLWordPrintable

    Details

    • Type: CSR
    • Status: Closed
    • Priority: P3
    • Resolution: Approved
    • Fix Version/s: 14
    • Component/s: tools
    • Labels:
      None
    • Subcomponent:
      jar
    • Compatibility Risk:
      low
    • Compatibility Risk Description:
      there could be users still depending on Pack200 and or Unpack200, but we have been warning since JDK 11 that these tools will be removed, same for uses of the `jar` tool with the -n option.
    • Interface Kind:
      Java API, Class file construct, add/remove command in $JDK/bin, add/remove/modify command line option
    • Scope:
      SE

      Description

      Summary

      Remove the jdk.pack module, the pack200 and unpack200 tools, and the Pack200 API in java.util.jar. Remove also the -n option from jar tool.

      Problem

      Pack200 is a complex and elaborate technology. The file format is tightly coupled to the class file format and the JAR file format, both of which have evolved in ways unforeseen by JSR 200. The compression benefit is not significant, and can be solved with deployment tools. Overall, the cost of maintaining Pack200 outweighs the benefit of including it in Java SE and the JDK.

      Solution

      Remove jdk.pack module that includes the pack200 and unpack200 tools. Remove java.util.jar.Pack200 class and java.util.jar.Pack200.Packer and java.util.jar.Pack200.Unpacker interfaces. Also remove the -n option from the jar tool.

      Specification

      The following APIs are removed:

      java.util.jar.Pack200
      java.util.jar.Pack200.Packer
      java.util.jar.Pack200.Unpacker

      The pack200 and unpack200 command line tools are removed.

      The JDK-specific module jdk.pack is removed.

      The jar -n option is removed.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              vromero Vicente Arturo Romero Zaldivar
              Reporter:
              vromero Vicente Arturo Romero Zaldivar
              Reviewed By:
              Alan Bateman, Mandy Chung
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: