Skip to content

Conversation

@graalvmbot
Copy link
Collaborator

The module system constructs a module graph starting from the root module set. Currently, the Native Image builder includes only reachable modules in the image (and therefore in the root module set).

As described in the Module System JEP (261), when running on the classpath, the expected behavior is to include java. modules in the root module set that export at least one package unconditionally. There are JCK tests that run on classpath and assert over modules that the analysis did not mark as reachable, e.g.:

  • api/modulegraph/ModuleGraphTest.html (tracked by GR-36033) - Performs boot module layer assertions based on the XML specification. The test itself does not use RMI but the XML specification expects that java.rmi is present in the boot module layer.

This PR implements the classpath default root module set specification and, as a consequence, makes these JCK tests pass on Native Image.

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Jan 21, 2023
@graalvmbot graalvmbot force-pushed the ivan-ristovic/GR-36033 branch from e338a5b to 54180fa Compare January 21, 2023 14:46
@graalvmbot graalvmbot force-pushed the ivan-ristovic/GR-36033 branch from 06a7e45 to 1c7dde9 Compare February 9, 2023 15:07
@graalvmbot graalvmbot force-pushed the ivan-ristovic/GR-36033 branch 3 times, most recently from cecbd56 to d84090b Compare February 27, 2023 21:13
@graalvmbot graalvmbot force-pushed the ivan-ristovic/GR-36033 branch 4 times, most recently from f086f9d to 1e9051a Compare March 7, 2023 10:28
@graalvmbot graalvmbot force-pushed the ivan-ristovic/GR-36033 branch from 6c6b82e to 1e9051a Compare March 9, 2023 13:16
@graalvmbot graalvmbot force-pushed the ivan-ristovic/GR-36033 branch from 1e9051a to 5d33c2f Compare March 9, 2023 21:28
@graalvmbot graalvmbot merged commit 81027ac into master Mar 11, 2023
@graalvmbot graalvmbot deleted the ivan-ristovic/GR-36033 branch March 11, 2023 18:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OCA Verified All contributors have signed the Oracle Contributor Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants