[
https://issues.apache.org/jira/browse/COLLECTIONS-888?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18070363#comment-18070363
]
Gary D. Gregory commented on COLLECTIONS-888:
---------------------------------------------
Hello [~drekbour]
I merged the PR to git master. Please test a local build or a snapshot build
from
https://repository.apache.org/content/repositories/snapshots/org/apache/commons/commons-collections4/4.6.0-SNAPSHOT/
and close this ticket if appropriate.
TY!
> PatriciaTrie incompatible with Java 21 (JEP 431 Sequenced Collections)
> ----------------------------------------------------------------------
>
> Key: COLLECTIONS-888
> URL: https://issues.apache.org/jira/browse/COLLECTIONS-888
> Project: Commons Collections
> Issue Type: Bug
> Affects Versions: 4.5.0
> Reporter: Marc Carter
> Priority: Major
> Fix For: 4.6.0
>
>
> JEP431 introduces some new API calls that conflict with method already
> existing in {{AbstractPatriciaTrie}}
> {noformat}
> java: lastEntry() in
> org.apache.commons.collections4.trie.AbstractPatriciaTrie cannot implement
> lastEntry() in java.util.SequencedMap
> attempting to assign weaker access privileges; was public
> {noformat}
> Quick fix is simply to make {{firstEntry()}} and {{lastEntry()}} methods
> public. I have not assessed any deeper integration with the new API.
> Aside: I'm not the first to request {*}please make {{AbstractPatriciaTrie}}
> public{*}! All the advanced users are having to write extensions into the
> collections4 package.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)