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

jdeps --require and --check should detect the specified module in the image

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 9
    • None
    • tools
    • None
    • b152

      The current implementation of jdeps requires to specify the root module via --add-modules or -m options for analysis. It'd be user-friendlier if jdeps detects if the module specified in --require or --check option is observable in the image.

      $ jdeps -I --require jdk.compiler --add-modules ALL-SYSTEM

      Inverse transitive dependences on [jdk.compiler]
      jdk.compiler <- jdk.rmic
      jdk.compiler <- jdk.jdeps <- jdk.jlink
      jdk.compiler <- jdk.xml.bind <- jdk.xml.ws
      jdk.compiler <- jdk.jshell
      jdk.compiler <- jdk.javadoc <- jdk.rmic

      $ jdeps --list-deps -m jdk.compiler
      <print nothing>

      In addition, jdeps --list-deps does not work properly with -m option. It currently only prints the output if the input is unnamed module.

            mchung Mandy Chung (Inactive)
            mchung Mandy Chung (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: