On Fri, 8 Sept 2023 at 13:46, Alex Herbert <alex.d.herb...@gmail.com> wrote:
<!-- SNIP --> > 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 JDK 21. Extra: Note that this incompatibility is true when targeting Java 21 as the release. If compiling for an earlier Java release then this is possible using JDK 21 via the javac --release flag. Collections is a very long way from targeting Java 21 (it currently targets Java 8). A third option would be: 3. Simply mark the methods as deprecated This acknowledges the issue but does nothing to fix it. The fix can be done with the bump to collections 5 when that happens. This will not support cutting edge users who are targeting Java 21. This would be expected to be a subset of the unknown number of users for these classes. A workaround would be the user uses a local copy of the class to allow source compilation (license permitting). --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org