-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
[FEATURE REQUEST] Primitives for Module support #168
Comments
What happens if the current module isn't named (aka a project without module-info.java), but it does rely on classes inside a named module? How does that behave and do any changes need to be made to support that? |
From my testing, the current set-up already handles non-module code calling module code. The classes will be available on the class-path. The only case that’s not currently supported is module code to module code. |
My main concern is how we’re going to detect modules for @inline and @classpath. Or is it even necessary to do so in those cases? |
If those pose a problem, maybe modules could be added more explicitly |
I thought about it and it shouldn't matter. Thinking about it, not specifying a module when compiling The only concern is if they're compiling a |
Well... I was debating using that, since I will eventually need to test my |
I think the issue in general is that there's no good way to retrieve the class information from an inline source since it's not yet compiled. I'm honestly not sure how to handle such a use-case. |
Is your feature request related to a problem? Please describe.
This issue discusses how to add low-level support for modules. This excludes anything in
com.elementary.junit.*
. High-level/user-facing changes is tracked in #147.At the moment,
Compiler
andDaemonCompiler
does not look at the module-path while compiling files. This causes files to be missing from compilation when using the@Introspect
annotation in a project that uses modules.At the moment
Compiler
has no concept of modules. All it does is accept a list of files and outputs the results of compiling said files. We need some mechanism of traversing the modules, and adding all files in those modules. However, how will this affect performance? Traversing all modules that the current module relies on doesn't sound cheap.In the initial prototype, we accessed the classes by getting the module of the test class and subsequently traversing through them:
If done correctly, we might not need to expose annotations to use modules since it's done automatically.
The text was updated successfully, but these errors were encountered: