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:
parent
a047d8532b
commit
79c92eadc3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user