Skip to content

JDK 26 warns about reflective mutation #245

@geoand

Description

@geoand

When building a Quarkus quickstart with Maven 3.9.12 using JDK 26 EA.34, I get:

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 @4b44655e (file:/home/gandrian/.sdkman/candidates/maven/current/lib/org.eclipse.sisu.inject-0.9.0.M4.jar)
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

This is because of JEP 500

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions