[BUILD-1078] SureFire: --illegal-access=deny not supported anymore on Java 17 Created: 22/May/23 Updated: 26/May/23 Resolved: 24/May/23 |
|
| Status: | Closed |
| Project: | Build |
| Component/s: | Poms |
| Affects Version/s: | None |
| Fix Version/s: | POMs 55 |
| Type: | Task | Priority: | Neutral |
| Reporter: | Bertrand Renuart | Assignee: | Michael Duerig |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Template: |
|
| Acceptance criteria: |
Empty
|
| Task DoR: |
Empty
|
| Team: | |
| Work Started: | |
| Approved: |
Yes
|
| Description |
|
The super-pom configures the Surefire plugin with --illegal-access=deny by default. Java 17 has deprecated that option which leads to the following WARN during test execution: OpenJDK 64-Bit Server VM warning: Ignoring option --illegal-access=deny; support was removed in 17.0 In order to reduce the amount of "you don't need to care" WARNings during the build, it might be worth to limit that setting to JDK versions less than 17. |