Skip to content
Permalink
Browse files
8273194: Document the two possible cases when Lookup::ensureInitializ…
…ed returns

Reviewed-by: alanb
  • Loading branch information
Mandy Chung committed Sep 10, 2021
1 parent 81d2ace commit ec9d1bebd772b3ca4ad3e0654cb4833c72ee238a
Showing 1 changed file with 6 additions and 1 deletion.
@@ -2781,8 +2781,13 @@ public Class<?> findClass(String targetName) throws ClassNotFoundException, Ille
* 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

1 comment on commit ec9d1be

@openjdk-notifier
Copy link

@openjdk-notifier openjdk-notifier bot commented on ec9d1be Sep 10, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.