Some things break on Java 9. Here I collect short, self contained, correct (or not) examples demonstrating what fails and (hopefully) how to fix it. Note that there is no judgment involved! This is not about whether the things should break or not and whether that's good or bad - it's just about what does break.
So far we have "trouble" with...
The demos are organized as Maven modules (I use Maven 3.5.0).
You can run them individually (in their respective folders) or consecutively (in the root folder) with
mvn clean test, maybe throwing in
-fae (fail at end) to execute all even if some fail.
On Java 8, the build should be successful. To run it on Java 9:
.mavenrcfile, pointing to your Java 9 install
.mvnfolders, rename the files
jvm.config(even the empty ones), which adds Java-9-specific command line flags required for the project
If you're on Linux, you can use the
Called with either
9 as parameter, it makes sure that the build runs on the appropriate version.
Contributions are very welcome! To make sure they have high quality, make sure your demo checks as many of these boxes as possible:
mvn clean testpasses on Java 8 but fails on Java 9
If you have any questions, open an issue. If want to contribute either open an issue or a PR, depending on how much you already have.
Once again, contributions are welcome! :)