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

Extra dash char '-' prefix for options in java launcher.opt.header

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 9
    • globalization
    • None

      key=java.launcher.opt.header in jdk/src/java.base/share/classes/sun/launcher/resources/launcher_*.properties

      The original value in launcher.properties is

          java.launcher.opt.header = Usage: {0} [options] class [args...]\n\
          \ (to execute a class)\n or {0} [options] -jar jarfile [args...]\n\
          \ (to execute a jar file)\n\
          \ or {0} [-options] -mp <modulepath> -m <modulename>[/<mainclass>] [args...]\n\
          \ (to execute the main class in a module)\n\
          where options include:\n


      In launcher_ja.properties,

          +java.launcher.opt.header = 使用方法: {0} [-options] class [args...]\n (クラスを実行する場合)\n または {0} [-options] -jar jarfile [args...]\n (jarファイルを実行する場合)\n または {0} [-options] -mp <modulepath> -m <modulename> | <modulename>/<mainclass>\n (モジュールのメイン・クラスを実行する場合)\noptionsには次のものがあります。\n

      Expected:
       no char '-' for in "[options] class [args...]"

            ljiang Leo Jiang (Inactive)
            ljiang Leo Jiang (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: