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

Reviewed-by: martin, rriggs
This commit is contained in:
Ivan Gerasimov 2019-01-09 10:59:37 -08:00
parent a047d8532b
commit 79c92eadc3

View File

@ -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 @@ class Thread implements Runnable {
/**
* 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