javajava-9jdeps

Use jdeps for module which has multi-version implementation, but root module doesn't


Not quite sure how to use jdeps to inspect module if current module has multi-version dependencies.

jdeps keep asking me provide --multi-version 9 but other dependent modules is not multi-version. How to properly use jdeps for such cases?

command:

jdeps  -cp .\..\..\..\modules --module-path .\..\..\..\modules  -s ws-gen.jar

Error: jaxb-api.jar is a multi-release jar file but --multi-release option is not set

command:


jdeps --multi-release 9 --module-path . -filter:package -s jaxb-api.jar
Error: bcprov-jdk15on-1.60.jar is not a multi-release jar file but --multi-release option is set

jdeps - earlier access from JDK11 command:


jdeps -version
11

Solution

  • This seems a bug in jdeps which is tracked by https://bugs.openjdk.java.net/browse/JDK-8210502.