Uploaded image for project: 'Commons Collections'
  1. Commons Collections
  2. COLLECTIONS-842

AbstractLinkedList incompatible with JDK 21's java.util.List

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Implemented
    • None
    • 4.5.0-M2
    • List
    • None

    Description

      New JDK 21 method in java.util.List addLast has a void return type. This clashes with the existing boolean return from the same method in AbstractLinkedList:

      java.util.List {
          default void addLast(E e);
      }
      
      org.apache.commons.collections4.list.AbstractLinkedList {
          public boolean addLast(final E o);
      }
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              reschke Julian Reschke
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: