Skip to content

Final field has been mutated reflectively warnings with JDK 26 #5173

@sormuras

Description

@sormuras

Steps to reproduce

WARNING: Use --enable-final-field-mutation=ALL-UNNAMED to avoid a warning
WARNING: Mutating final fields will be blocked in a future release unless final field mutation is enabled
WARNING: Final field selectedUris in class
  org.junit.platform.console.options.TestDiscoveryOptionsMixin$SelectorOptions
has been mutated reflectively by class
  org.junit.platform.console.shadow.picocli.CommandLine$Model$FieldBinding
in unnamed module @769c9116 (file:/.../junit-platform-console-standalone-6.1.0-SNAPSHOT.jar)
WARNING: Final field _cipher in class
  org.sonatype.plexus.components.sec.dispatcher.DefaultSecDispatcher
has been mutated reflectively by class
  org.eclipse.sisu.bean.BeanPropertyField
in unnamed module @501edcf1 (file:/.../apache-maven-3.9.11/lib/org.eclipse.sisu.inject-0.9.0.M4.jar

Context

Latest

Deliverables

  • Remove final modifiers from sources under our control
  • Permit mutation for the time being - and update dependencies where possible

Metadata

Metadata

Assignees

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions