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

Argument parsing allows junk after valid arguments

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 5.0
    • 2.0
    • hotspot
    • b24
    • x86
    • generic

      If I execute

          % $deployed/JDK-1.4.0-beta_refresh/bin/java -showversion -XX:+PrintGC-showversion Test

      I get

          java version "1.4.0-beta3"
          Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta3-b83)
          Java HotSpot(TM) Client VM (build 1.4.0-beta3-b83, mixed mode)
          
          [GC 2048K->744K(3520K), 0.0327725 secs]

      Where the run-together options (-XX:+PrintGC-showversion) don't seem to
      bother the argument parser. If I leave out the first "-showversion",
      then I can see that it's not parsing the text that's past the valid
      argument.

      ###@###.### 2001-10-15

            sbohne Steve Bohne (Inactive)
            pbk Peter Kessler
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: