Skip to content

Commit

Permalink
Add back FactoryHelper.toClass(ClassFile cf, ClassLoader loader, Prot…
Browse files Browse the repository at this point in the history
…ectionDomain domain) for backward compatibility in minor release.
  • Loading branch information
soul2zimate committed Mar 25, 2019
1 parent e3f70e8 commit 7a91c46
Showing 1 changed file with 18 additions and 0 deletions.
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

0 comments on commit 7a91c46

Please sign in to comment.