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

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

Agile BoardAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment