Skip to content

Adding support for --limit-modules, --module-path and similar options.#44

Open
lahodaj wants to merge 5 commits into
apache:masterfrom
lahodaj:jdk9-options-support
Open

Adding support for --limit-modules, --module-path and similar options.#44
lahodaj wants to merge 5 commits into
apache:masterfrom
lahodaj:jdk9-options-support

Conversation

@lahodaj
Copy link
Copy Markdown
Contributor

@lahodaj lahodaj commented May 11, 2026

Jackpot currently does not support --add-modules, --add-exports, --limit-modules and --system. This PR is trying to add support for these.

@lahodaj lahodaj force-pushed the jdk9-options-support branch from 8799859 to 8bfea76 Compare May 13, 2026 09:35
if (modules.isEmpty()) {
throw new IllegalStateException("No modules!");
try {
Class.forName("org.netbeans.ProxyURLStreamHandlerFactory").getMethod("register")
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nasty.

Why?

Why this is needed? To provide special support for protocols like nbfs? Or to override support for standard protocols like jar?

Fix

Shalln't we (finally) have a way to register the factory in a more standard way, not using reflection like this?

If it was, then this code could be replaced by for (var p : ServiceLoader.load(URLStreamHandlerProvider.class)) { } - e.g. just by iterating over public classes the support could be enabled.

Or am I over simplifying the problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants