[
https://issues.apache.org/jira/browse/COLLECTIONS-888?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18069073#comment-18069073
]
Gary D. Gregory commented on COLLECTIONS-888:
---------------------------------------------
Hello [~drekbour]
Hm, AbstractPatriciaTrie has been public since 4.4:
{code:java}
public abstract class AbstractPatriciaTrie<K, V> extends AbstractBitwiseTrie<K,
V> {
...
{code}
For the two methods you mention, please test
https://github.com/apache/commons-collections/pull/673
> 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)