|
1 | | - |
| 1 | + |
| 2 | + |
2 | 3 | [](https://github.com/ascopes/java-compiler-testing/actions/workflows/build.yml) |
3 | 4 | [](https://repo1.maven.org/maven2/io/github/ascopes/jct/java-compiler-testing) |
4 | 5 | [](https://codecov.io/gh/ascopes/java-compiler-testing) |
@@ -85,6 +86,12 @@ dependencies { |
85 | 86 | } |
86 | 87 | ``` |
87 | 88 |
|
| 89 | +For Java 11 support, you should use the v4.x version of this library. If you |
| 90 | +only need to build on Java 17 or newer, you should use the v5.x version of this |
| 91 | +library. This does not affect the versions of Java you can write tests to cross |
| 92 | +compile against, but affects the versions of various dependencies and the |
| 93 | +bytecode version of this library itself. |
| 94 | + |
88 | 95 | ## JPMS |
89 | 96 |
|
90 | 97 | If your tests make use of JPMS (i.e. they have a `module-info.java` somewhere), then you will want |
@@ -229,8 +236,9 @@ support, running the Lombok annotation processor over the input. This assumes th |
229 | 236 | JAR is already on the classpath for the JUnit test runner (e.g. is a test dependency in your |
230 | 237 | project). |
231 | 238 |
|
232 | | -You will want to make sure you do not attempt to target anything older than Java 9 in this case, since |
233 | | -module support was only introduced in Java 9. |
| 239 | +> [!IMPORTANT] |
| 240 | +> You will want to make sure you do not attempt to target anything older than Java 9 in this case, since |
| 241 | +> module support was only introduced in Java 9. |
234 | 242 |
|
235 | 243 | ```java |
236 | 244 |
|
@@ -330,9 +338,7 @@ holding the flags you wish to use. |
330 | 338 | `-XX:+TieredCompilation -XX:TieredStopAtLevel=1` to set this up. Enabling this in the JCT |
331 | 339 | builds reduced the overall build time by around 20 seconds. |
332 | 340 | 2. Use the ZGC - the ZGC will reduce lag when performing garbage collection on code that |
333 | | - has a high churn of objects. On Java 11, the ZGC is an experimental feature, which needs |
334 | | - to be enabled with `-XX:+UnlockExperimentalOptions -XX:+UseZGC`. On Java 17, you just |
335 | | - need to pass `-XX:+UseZGC` alone. |
| 341 | + has a high churn of objects. You just need to pass `-XX:+UseZGC` alone. |
336 | 342 |
|
337 | 343 | ## Third-party compiler support |
338 | 344 |
|
|
0 commit comments