[ 
https://issues.apache.org/jira/browse/COLLECTIONS-888?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18070358#comment-18070358
 ] 

Marc Carter commented on COLLECTIONS-888:
-----------------------------------------

Ah, it's been public since 4.{*}5{*}.0 according to git tags.  PR works great 
thanks.

> 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
>
> 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)

Reply via email to