jlink / jmods version compatibiltiy

Bernd Eckenfels ecki at zusammenkunft.net
Fri Jun 1 22:24:38 UTC 2018


Hello,

I am not sure what the Policy for backward/Forward compatibility for JMOD files is, but when I use JDK-9.0.4 jlink on 11ea JMODs I get a IllegalArgumentException and „error reading“ by JDK-10.0.1 with no further Details.

If the JMOD files require newer jlink, should they have a Version identifier to allow rejecting this. Or is it expected to normally work?

C:\ >"c:\Program Files\Java\jdk-9.0.4\bin\jlink" --verbose --module-path "jdk-11-oraopenjdk\jmods" --output o1 --add-modules=java.base,jdk.crypto.mscapi,jdk.jartool,jdk.jcmd,jdk.jshell,jdk.naming.dns --strip-debug --compress 2 --no-header-files
…
Error: java.lang.IllegalArgumentException

C:\>"c:\Program Files\Java\jdk-10.0.1\bin\jlink" --verbose --module-path "jdk-11-oraopenjdk\jmods" --output o2 --add-modules=java.base,jdk.crypto.mscapi,jdk.jartool,jdk.jcmd,jdk.jshell,jdk.naming.dns --strip-debug --compress 2 --no-header-files
Error: Error reading module: jdk-11-oraopenjdk\jmods\java.base.jmod

C:\>"c:\Program Files\Java\jdk-11\bin\jlink" --verbose --module-path "jdk-11-oraopenjdk\jmods" --output o3 --add-modules=java.base,jdk.crypto.mscapi,jdk.jartool,jdk.jcmd,jdk.jshell,jdk.naming.dns --strip-debug --compress 2 --no-header-files
…
Providers:
…

Gruss
Bernd
-- 
http://bernd.eckenfels.net



More information about the core-libs-dev mailing list