Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4373485

java.util.LinkedList.getFirst() doesn't describe the behaviour for empyt list

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.1.3
    • core-libs
    • beta
    • sparc
    • solaris_2.5
    • Verified

      The current specification for method getFirst() in class java.util.LinkedList doesn't describe the behaviour if the list is empty, but the current implementation does throw NoSuchElementException when the list is empty.

            jjb Josh Bloch (Inactive)
            hji Huafang Ji (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: