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

Add back FactoryHelper.toClass(ClassFile cf, ClassLoader loader, Prot… #254

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
18 changes: 18 additions & 0 deletions src/main/javassist/util/proxy/FactoryHelper.java
Expand Up @@ -113,6 +113,24 @@ public static Class<?> toClass(ClassFile cf, ClassLoader loader)
return toClass(cf, null, loader, null);
}

/**
* Loads a class file by a given class loader.
*
* @param loader The class loader. It can be null if {@code neighbor}
* is not null.
*
* @param domain if it is null, a default domain is used.
* @since 3.3
*
* @see #toClass(ClassFile,Class,ClassLoader,ProtectionDomain)
* @deprecated
*/
public static Class<?> toClass(ClassFile cf, ClassLoader loader, ProtectionDomain domain)
throws CannotCompileException
{
return toClass(cf, null, loader, domain);
}

/**
* Loads a class file by a given class loader.
*
Expand Down