Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting rid of Automatic Modules? #1451

Open
EliasHeydrich opened this issue Apr 7, 2023 · 0 comments · May be fixed by #1569
Open

Getting rid of Automatic Modules? #1451

EliasHeydrich opened this issue Apr 7, 2023 · 0 comments · May be fixed by #1569

Comments

@EliasHeydrich
Copy link

EliasHeydrich commented Apr 7, 2023

Eclipse Collections, likely to support older Java versions, is not yet employing Java's module system. Therefore, an automatic module is created by the system, which will work just fine for 90% of the usecases.

A problem arises when trying to employ other elements of the modern Java Toolchain, such as JLink or JPackager. The former, for example, plainly refuses to work with automatic modules:

Error: automatic module cannot be used with jlink: org.eclipse.collections.impl from file:///C:/Users/{my-user}/.m2/repository/org/eclipse/collections/eclipse-collections/11.1.0/eclipse-collections-11.1.0.jar

Stackoverflow and other similar places suggest possible approaches, but these are hacky and involve either a lot of manual work or writing lots of build-system workarounds (like excluding Eclipse Collections at first, then adding it to the classpath later in form of a JAR)...

Is a "proper" module-info.java planned at some point? Note: Effectively, this is related to #1378.

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 a pull request may close this issue.

1 participant