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

java.exe shows non existant option --addmods

XMLWordPrintable

      FULL PRODUCT VERSION :
      java version "9-ea"
      Java(TM) SE Runtime Environment (build 9-ea+144)
      Java HotSpot(TM) 64-Bit Server VM (build 9-ea+144, mixed mode)

      ADDITIONAL OS VERSION INFORMATION :
      Microsoft Windows [Version 6.1.7601]

      A DESCRIPTION OF THE PROBLEM :
      java.exe shows the non existant option "--addmods". The correct option is currently "--add-modules".

      (Sorry for possibly wrong category/subcategory... I couldn't find any that really fits)

      If you can't reproduce it, maybe it is only in Germany.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      cd C:\Program Files\Java\jdk-9\bin
      java

      same with

      C:\Program Files\Java\jre-9\bin
      java


      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      expecting something with "--add-modules", as this is the current syntax. "javac" shows the correct option:

        --add-modules <module>(,<module>)*
              Root modules to resolve in addition to the initial modules, or all modules
              on the module path if <module> is ALL-MODULE-PATH.
      ACTUAL -
      output:

      ...
          -addmods <modulename>[,<modulename>...]
                        Root-Module, die zusätzlich zum anfänglichen Modul aufgelöst werden sollen
      ....

      REPRODUCIBILITY :
      This bug can be reproduced always.

            ljiang Leo Jiang (Inactive)
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: