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

Error message for mistyping -XX:+Unlock...Options is not helpful

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 23
    • 23
    • hotspot
    • b09

      When passing "UnlockXXXOptions" without the preceding '+', the error message is lovely but not all that helpful:

      ```
      Error: VM option 'UnlockExperimentalVMOptions' is experimental and must be enabled via -XX:+UnlockExperimentalVMOptions.
      ```

      ```
      Error: VM option 'UnlockDiagnosticVMOptions' is diagnostic and must be enabled via -XX:+UnlockDiagnosticVMOptions.
      ```

      A clearer error message would be nice.

            szaldana Sonia Zaldana Calles
            stuefe Thomas Stuefe
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: