changeset 53211:eda4c6456efb

8210788: Javadoc for Thread.join(long, int) should specify that it waits forever when both arguments are zero Reviewed-by: martin, rriggs
author igerasim
date Wed, 09 Jan 2019 10:59:37 -0800
parents 17539619efe6
children bccff579c2ff
files src/java.base/share/classes/java/lang/Thread.java
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.base/share/classes/java/lang/Thread.java	Wed Jan 09 17:40:12 2019 +0100
+++ b/src/java.base/share/classes/java/lang/Thread.java	Wed Jan 09 10:59:37 2019 -0800
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1994, 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1994, 2019, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -1315,6 +1315,7 @@
     /**
      * Waits at most {@code millis} milliseconds plus
      * {@code nanos} nanoseconds for this thread to die.
+     * If both arguments are {@code 0}, it means to wait forever.
      *
      * <p> This implementation uses a loop of {@code this.wait} calls
      * conditioned on {@code this.isAlive}. As a thread terminates the