-
Notifications
You must be signed in to change notification settings - Fork 738
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
Test project for modularity #1709
Comments
I hacked up an outline of 2. (with a makefile in lieu of the ant scripting) for designer testing the VM. https://github.com/pdbain-ibm/openj9/tree/modularity Relevant directories are https://github.com/pdbain-ibm/openj9/tree/modularity/test/functional/Java9andUp/modules The files are arranged so they compile in Eclipse and the makefile rearranges them into the correct module directories. |
The plan is:
I have a rough draft of the tests in pull request #1763. I am working on the build script now. |
We need tests to exercise modularity, specifically (at first) checking class visibility under various conditions. Eclipse at present allows only one module-info.java (and hence one module) per eclipse project.
Assuming we need N modules, we can:
Maintain N projects (clumsy and hard to maintain). Also, test cases which are caught at compile time as well as runtime are problematic.
Put all classes and packages for all modules in the regular source directory in one project (possibly an existing project), and separate module-info.java files in a special place. Use the generic target in build.xml to compile the classes. After that, use another build.xml target to compile the module-info files and move the packages and class files to directories corresponding to their modules along with the module info. Since the java files are in an eclipse source directory, we can edit them fairly easily.
Like 2., but put all the files in a generic directory in the project and use the a special target in build.xml file to do all compilation and file movement. This loses the benefit of the source-aware editor.
I would like to know if there are other ways to approach this.
@smlambert @llxia your thoughts? Any other ideas? FYI @DanHeidinga @pshipton @keithc-ca
The text was updated successfully, but these errors were encountered: