Expire/remove the UseAppCDS option in JDK 12

XMLWordPrintable

    • Type: CSR
    • Resolution: Approved
    • Priority: P3
    • 12
    • Component/s: hotspot
    • None
    • behavioral
    • minimal
    • The UseAppCDS option must be removed from the command line for starting a Java program.
    • add/remove/modify command line option

      Summary

      The UseAppCDS option was made obsolete in JDK 11 via JDK-8193213. The option will be expired in JDK 12.

      Problem

      The change for JDK-8204563 resulting in a custom warning message if the UseAppCDS option is specified in JDK 11.

      Java HotSpot(TM) 64-Bit Server VM warning: Ignoring obsolete option UseAppCDS; AppCDS is automatically enabled
      

      We should have the same warning message for an option which is set to expire in JDK 12.

      Solution

      Revert the change for JDK-8204563 and remove the UseAppCDS entry in arguments.cpp.

      Specification

      Unrecognized VM option 'UseAppCDS'
      Error: Could not create the Java Virtual Machine.
      Error: A fatal exception has occurred. Program will exit.
      

            Assignee:
            Calvin Cheung (Inactive)
            Reporter:
            Calvin Cheung (Inactive)
            Ioi Lam, Jiangli Zhou
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: