On 27/07/2017 10:07, Jaroslav Tulach wrote:
:
Yes, it seems like a desirable goal to let Graal compiler work with just
java.base. Is there a description how to build JDK9/10 with just java.base
that I could follow and test against?
You can use jlink to create a run-time image that only contains java.base (jlink --module-path $JAVA_HOME/jmods --add-modules java.base --output smalljre).



If it exposes a MBean, the dependency would be needed.
Isn't there a way to require an optional dependency? That would be sufficient -
as the classes in question are only loaded once java.management searches for
them. E.g. only when java.management is installed.
There is `requires static` but it would be a lot cleaner if the management support could be refactored into its own service provider module, meaning JVMCIMXBeans would be in its own module.

-Alan

Reply via email to