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

Java not print "Unrecognized option" when it is invalid option.

    Details

    • Subcomponent:
    • Resolved In Build:
      b44
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Verified

      Backports

        Description

        Java not print "Unrecognized option: ...
        Could not create the Java virtual machine" if random character set follow in some valid X option.
        For example
        "java -Xcomputer", "java -XproffessionalismOfOurEngineer", "java -XinterviewWithVampire", "java -XmixedVeryHardMixed!!!Oh!CanIDosomething?" is correct!
        After those command java help is printed.

        Example 2:
        >java -XcompilationError!GameOver,Baby! -version
        java version "1.5.0_10"
        Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_10-b03)
        Java HotSpot(TM) Client VM (build 1.5.0_10-b03, compiled mode, sharing)

        But
        "java -XfutureSSS" is incorrect. The next message will be print:
        Unrecognized option: -XfutureSSS
        Could not create the Java virtual machine."

        Is it correct behavior?

        It was checked on 1.5.0, 1.4.2 JDK versions.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  jwilhelm Jesper Wilhelmsson
                  Reporter:
                  afomin Alexander Fomin (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Imported:
                    Indexed: