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

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 1.4.0
    • Affects Version/s: 1.1.3
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: