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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 1.4.1
    • Fix Version/s: None
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: