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

Expire/remove the UseAppCDS option in JDK 12

XMLWordPrintable

    • Icon: CSR CSR
    • Resolution: Approved
    • Icon: P3 P3
    • 12
    • 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.

            ccheung Calvin Cheung
            ccheung Calvin Cheung
            Ioi Lam, Jiangli Zhou
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: