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

Javadoc for Thread.join(long, int) should specify that it waits forever when both arguments are zero

XMLWordPrintable

    • b03
    • Not verified

        Currently the javadoc states:
        "Waits at most millis milliseconds plus nanos nanoseconds for this thread to die."
        https://download.java.net/java/early_access/jdk11/docs/api/java.base/java/lang/Thread.html#join(long,int)

        It should mention that if both arguments are zero, the method will wait forever like in the javadoc for join(long).

              igerasim Ivan Gerasimov
              igerasim Ivan Gerasimov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: