JDK-8217752 : remove the --limit-modules option
  • Type: Bug
  • Component: tools
  • Sub-Component: jpackage
  • Affected Version: internal
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2019-01-24
  • Updated: 2019-03-22
  • Resolved: 2019-01-31
Related Reports
Duplicate :  
Relates :  
Description
With:

jpackage create-image \
    --input out/artifacts \
    --output out \
    --limit-modules java.base \
    --main-jar Jpackager-Hello-jar/Jpackager-Hello.jar \
    --class Main

The resulting image does not limit the modules to java.base.

Running out/Main/runtime/bin/java --list-modules shows all the JDK modules.  There is no documentation that says what is limited or that it does not apply to the predefined java runtime.



Comments
moving to a line item in JDK-8217894
31-01-2019

after some discussion we decided to remove the --limit-modules option.
28-01-2019