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

Neither "java -help" nor "java -X" print assertion options

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.4.0
    • 1.4.0
    • tools
    • None
    • beta3
    • generic
    • generic

      Assertions are a new feature in the Merlin release. However, neither "java -help" nor "java -X" list the command line options necessary to turn assertion checking on, from JSR-41:

      java [ -enableassertions | -ea ] [:<package name>"..." | :<class name> ]
      java [ -disableassertions | -da ] [:<package name>"..." | :<class name> ]
      java [ -enablesystemassertions | -esa ]
      java [ -disablesystemassertions | -dsa ]

      These options should be documented somewhere in the java command-line usage messages.

            gafter Neal Gafter (Inactive)
            darcy Joe Darcy
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: