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

(spec thread) Thread.join(long) missing "@throws IllegalArgumentException"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.4.1
    • core-libs
    • generic
    • generic

      join(long ms ) in java.lang.Thread throws a IllegalArgumentException when you pass a negative value .

      This is not documented in the javadoc for join(long ms ) while
      it is specified for join(long ms, int nanosec )

      join(long ms ) should declare that it throws an
      IllegalArgumentException the same way that for join(long, int) does.

            psoper Pete Soper (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: