Uploaded image for project: 'Harmony'
  1. Harmony
  2. HARMONY-3876

[classlib][launcher] 'java -help' does not print a list of options end returns 1

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • Classlib
    • None
    • Windows

    Description

      'java -help' command prints the following

      Harmony Java launcher
      Apache Harmony Launcher : (c) Copyright 1991, 2006 The Apache Software Foundation or its licensors,
      as applicable.
      java [-vm:vmdll -vmdir:dir -D... [-X...]] [args]

      and sets ERRORLEVEL to 1 instead of printing a help message with a list of possible options and returning 0 as exit value.

      'java -X' doesn't work too.

      I've tried svn = r537794, (May 14 2007), Windows/ia32/msvc 1310, release build

      Affected tests:
      functional/org/apache/harmony/test/func/api/java/lang/Runtime/exec/exec10/exec1010/exec1010.xml
      functional/org/apache/harmony/test/func/api/java/lang/Runtime/exec/exec10/exec1011/exec1011.xml
      functional/org/apache/harmony/test/func/api/java/lang/Runtime/exec/exec10/exec1012/exec1012.xml
      functional/org/apache/harmony/test/func/api/java/lang/Runtime/exec/exec10/exec1013/exec1013.xml
      functional/org/apache/harmony/test/func/api/java/lang/Runtime/exec/exec10/exec1014/exec1014.xml
      functional/org/apache/harmony/test/func/api/java/lang/Runtime/exec/exec10/exec1015/exec1015.xml
      functional/org/apache/harmony/test/func/vm/cli/X/X.xml
      (see HARMONY-3528)

      Attachments

        Activity

          People

            cap Alexey Petrenko
            rbouchma Roman S. Bushmanov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: