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

jdeps can drop printing stack trace when FindException is thrown due to modules not found

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 23
    • 23
    • tools
    • None
    • b09

      Running jdeps --print-module-deps but module is not found, it will fail and print the exception with stack trace. It's a user error. It should specify the correct module path for resolving the module graph. A slight improvement to make it clearer is not to print the exception stack trace.

      Exception in thread "main" java.lang.module.FindException: Module lib not found, required by main
              at java.base/java.lang.module.Resolver.findFail(Resolver.java:892)
              at java.base/java.lang.module.Resolver.resolve(Resolver.java:192)
              at java.base/java.lang.module.Resolver.resolve(Resolver.java:141)
              at java.base/java.lang.module.Configuration.resolve(Configuration.java:420)
              at java.base/java.lang.module.Configuration.resolve(Configuration.java:254)
              at jdk.jdeps/com.sun.tools.jdeps.JdepsConfiguration$Builder.build(JdepsConfiguration.java:564)
              at jdk.jdeps/com.sun.tools.jdeps.JdepsTask.buildConfig(JdepsTask.java:607)
              at jdk.jdeps/com.sun.tools.jdeps.JdepsTask.run(JdepsTask.java:561)
              at jdk.jdeps/com.sun.tools.jdeps.JdepsTask.run(JdepsTask.java:537)
              at jdk.jdeps/com.sun.tools.jdeps.Main.main(Main.java:50)

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

              Created:
              Updated:
              Resolved: