Marc Carter created COLLECTIONS-888:
---------------------------------------

             Summary: PatriciaTree 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


JEP431 introduces some new API calls that conflict with method already existing 
in {{AbstractPatriciaTree}}

{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 {{AbstractPatriciaTree}} 
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