[BUILD-948] Add a build property for setting the --illegal-access option for running tests Created: 14/Nov/22  Updated: 18/Nov/22  Resolved: 18/Nov/22

Status: Closed
Project: Build
Component/s: Poms
Affects Version/s: None
Fix Version/s: POMs 52

Type: Task Priority: Neutral
Reporter: Michael Duerig Assignee: Michael Duerig
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
dependency
Template:
Acceptance criteria:
Empty
Task DoR:
Empty
Release notes required:
Yes
Epic Link: Build on Java 17
Team: Foundation

 Description   

To gradually remove illegal reflexive access operations from our code base, we need to be able to control the value of the --illegal-access option when running tests:

  • Introduce a illegal.access property in the pom
  • Set the default to deny so builds fail in the presence of illegal reflexive access operations
  • Let individual project override the property when needed (i.e. setting it to debug will cause logging of stack traces).
  • Ensure the option only applies when building on JDK9+

 


Generated at Sun Feb 11 23:46:42 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.