On Fri, 8 Sept 2023 at 13:46, Alex Herbert wrote:
> The problem then becomes how to support AbstractLinkedList and
> CursorableLinkedList. Currently collections4 will not be source
> compatible with JDK 21. Any downstream project that extends these
> classes will not be source compatible with J
On second thought, maybe it was too early and some consideration should be
given to whether and how Java 9+ modules (with which I do not profess
expertise) could address this issue without the baby/bathwater situation of
migrating the package of the whole library.
Matt
On Fri, Sep 8, 2023, 8:46 A
IMO the version bump is warranted/I'd select option 2 (although if it's not
too early for me I don't see these options as being mutually exclusive).
Matt
On Fri, Sep 8, 2023, 7:46 AM Alex Herbert wrote:
> JDK 21 has added these methods to java.util.List:
>
> default public void addFirst(E o)
>
JDK 21 has added these methods to java.util.List:
default public void addFirst(E o)
default public void addLast(E o)
These are source incompatible with Commons Collections AbstractLinkedList:
public boolean addFirst(E o)
public boolean addLast(E o)
This affects AbstractLinkedList and any list t