You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "lprimak (via GitHub)" <gi...@apache.org> on 2026/04/21 23:50:20 UTC
[I] Final field modification warning in JDK 26 [maven]
lprimak opened a new issue, #11974:
URL: https://github.com/apache/maven/issues/11974
### Affected version
4.0.0-rc-5 (3.x not affected)
### Bug description
Running maven on JDK 26 produces the following warning
```
% mvn verify
WARNING: Final field modelId in class org.apache.maven.api.model.InputSource has been mutated reflectively by class org.apache.maven.impl.model.DefaultModelBuilder$ModelBuilderSessionState in unnamed module @5fbe4146 (file:/Users/lprimak/.sdkman/candidates/maven/4.0.0-rc-5/lib/maven-impl-4.0.0-rc-5.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 an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Final field modification warning in JDK 26 [maven]
Posted by "gnodet (via GitHub)" <gi...@apache.org>.
gnodet commented on issue #11974:
URL: https://github.com/apache/maven/issues/11974#issuecomment-4776356272
Fixed by:
- PR #12147 (maven-4.0.x)
- PR #12261 (forward-port to master)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Final field modification warning in JDK 26 [maven]
Posted by "gnodet (via GitHub)" <gi...@apache.org>.
gnodet closed issue #11974: Final field modification warning in JDK 26
URL: https://github.com/apache/maven/issues/11974
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Final field modification warning in JDK 26 [maven]
Posted by "slachiewicz (via GitHub)" <gi...@apache.org>.
slachiewicz commented on issue #11974:
URL: https://github.com/apache/maven/issues/11974#issuecomment-4295578453
related fix https://github.com/apache/maven/pull/11538 for rc6
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org