[
https://issues.apache.org/jira/browse/LANG-1810?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18048289#comment-18048289
]
Gary D. Gregory commented on LANG-1810:
---------------------------------------
The fact that the field is not final is a plain old mistake/bug.
The issue is that fixing it breaks binary compatibility.
It's that simple.
If a "faulty" app/lib edits the field, then indeed, that's not an intended use
case, but the end-user can't do anything about it if the faulty call is in a
transitive dependency (user app -> faulty JAR -> Lang).
We've always been careful to never break BC in a major release line; in my
view, breaking BC here is not worth it. JAR hell is never fun.
> Public static fields must be final
> ----------------------------------
>
> Key: LANG-1810
> URL: https://issues.apache.org/jira/browse/LANG-1810
> Project: Commons Lang
> Issue Type: Bug
> Affects Versions: 3.20.0
> Reporter: Sebb
> Priority: Major
> Fix For: 4.0
>
>
> https://github.com/apache/commons-lang/blob/8b91981bf647312d2b0af0cc5d00d42f5d843868/src/main/java/org/apache/commons/lang3/ArrayUtils.java#L197
--
This message was sent by Atlassian Jira
(v8.20.10#820010)