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

Deprecate com.sun.* and com.oracle.* packages in jdk.packager for removal

    Details

    • Type: CSR
    • Status: Closed
    • Priority: P2
    • Resolution: Approved
    • Fix Version/s: 10
    • Component/s: deploy
    • Labels:
      None
    • Subcomponent:
    • Compatibility Kind:
      source
    • Compatibility Risk:
      low
    • Compatibility Risk Description:
      Low risk, we are not removing the classes yet, only deprecating.
    • Interface Kind:
      Java API

      Description

      Summary

      Deprecate for removal Java Packager packages (jdk.packager module) that we currently export.

      Problem

      We want to deprecate (and remove it in the future releases) the following Java Packager packages that we currently (in JDK9) export:

      jdk.packager module \ module-info.java:

      exports com.oracle.tools.packager; 
      exports com.sun.javafx.tools.packager; 
      exports com.sun.javafx.tools.packager.bundlers; 
      exports com.sun.javafx.tools.resource; 

      The API is not trivial and is not well documented. Instead of that, we plan to introduce a ToolProvider support. The main benefit of this is to be able to remove the legacy API in JDK 11.

      Solution

      Deprecate (for removal) all classes from the packages com.oracle.tools.packager, com.sun.javafx.tools.packager, com.sun.javafx.tools.packager.bundlers and com.sun.javafx.tools.resource from jdk.packager module.

      Specification

      Deprecate the following classes for removal:

      com.oracle.tools.packager.AbstractBundler
      com.oracle.tools.packager.AbstractImageBundler
      com.oracle.tools.packager.BasicBundlers
      com.oracle.tools.packager.Bundler
      com.oracle.tools.packager.BundlerParamInfo
      com.oracle.tools.packager.Bundlers
      com.oracle.tools.packager.ConfigException
      com.oracle.tools.packager.EnumeratedBundlerParam
      com.oracle.tools.packager.IOUtils
      com.oracle.tools.packager.InvalidBundlerParamException
      com.oracle.tools.packager.JreUtils
      com.oracle.tools.packager.Log
      com.oracle.tools.packager.Platform
      com.oracle.tools.packager.RelativeFileSet
      com.oracle.tools.packager.StandardBundlerParam
      com.oracle.tools.packager.UnsupportedPlatformException
      com.sun.javafx.tools.packager.CachingPrintStream
      com.sun.javafx.tools.packager.CommonParams
      com.sun.javafx.tools.packager.CreateBSSParams
      com.sun.javafx.tools.packager.CreateJarParams
      com.sun.javafx.tools.packager.DeployParams
      com.sun.javafx.tools.packager.HtmlParam
      com.sun.javafx.tools.packager.JSCallback
      com.sun.javafx.tools.packager.JarSignature
      com.sun.javafx.tools.packager.Log
      com.sun.javafx.tools.packager.Main
      com.sun.javafx.tools.packager.MakeAllParams
      com.sun.javafx.tools.packager.PackagerException
      com.sun.javafx.tools.packager.PackagerLib
      com.sun.javafx.tools.packager.Param
      com.sun.javafx.tools.packager.SignJarParams
      com.sun.javafx.tools.packager.TemplatePlaceholders
      com.sun.javafx.tools.packager.bundlers.BundleParams
      com.sun.javafx.tools.packager.bundlers.Bundler
      com.sun.javafx.tools.packager.bundlers.ConfigException
      com.sun.javafx.tools.packager.bundlers.RelativeFileSet
      com.sun.javafx.tools.packager.bundlers.UnsupportedPlatformException
      com.sun.javafx.tools.resource.ConsolidatedResources
      com.sun.javafx.tools.resource.DeployResource
      com.sun.javafx.tools.resource.DetailedResourceTraversal
      com.sun.javafx.tools.resource.PackagerResource
      com.sun.javafx.tools.resource.ResourceFilter
      com.sun.javafx.tools.resource.ResourceTraversal

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                vdrozdov Victor Drozdov (Inactive)
                Reporter:
                vdrozdov Victor Drozdov (Inactive)
                Reviewed By:
                Alexander Matveev
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: