Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JDK-8273194: Document the two possible cases when Lookup::ensureInitialized returns #5343

wants to merge 2 commits into from
Changes from all commits
File filter

Filter by extension

Filter by extension

Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
@@ -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