Uploaded image for project: 'Build'
  1. Build
  2. BUILD-1078

SureFire: --illegal-access=deny not supported anymore on Java 17

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • POMs 55
    • None
    • Poms
    • None
    • Yes

      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.

        Acceptance criteria

              mduerig Michael Duerig
              brenuart Bertrand Renuart
              Foundation
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:
                Work Started:

                  Task DoR