mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8273194: Document the two possible cases when Lookup::ensureInitialized returns
Reviewed-by: alanb
This commit is contained in:
parent
81d2acee57
commit
ec9d1bebd7
1 changed files with 6 additions and 1 deletions
|
@ -2781,8 +2781,13 @@ assertEquals("[x, y, z]", pb.command().toString());
|
|||
* to be initialized if it has not been already initialized,
|
||||
* as specified in JVMS {@jvms 5.5}.
|
||||
*
|
||||
* <p>
|
||||
* This method returns when {@code targetClass} is fully initialized, or
|
||||
* when {@code targetClass} is being initialized by the current thread.
|
||||
*
|
||||
* @param targetClass the class to be initialized
|
||||
* @return {@code targetClass} that has been initialized
|
||||
* @return {@code targetClass} that has been initialized, or that is being
|
||||
* initialized by the current thread.
|
||||
*
|
||||
* @throws IllegalArgumentException if {@code targetClass} is a primitive type or {@code void}
|
||||
* or array class
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue