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

Better argument parsing and validation in Diagnostic Commands

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 11
    • Fix Version/s: tbd
    • Component/s: core-svc
    • Labels:

      Description

      The diagnostic commands should provide a validation step that correct arguments have been provided before using them blindly. e.g. the jcmd GC.heap_dump is known to support a single positional filename argument, but when a user provides "filename=xxx" the operation blindly creates a file named "filename".

      This issue will be used to track a comprehensive review of the diagnostic command arguments and the introduction of a consistent validation step prior to command execution.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                gadams Gary Adams
                Reporter:
                gadams Gary Adams
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: