Skip to content

Commit

Permalink
Merge pull request #254 from soul2zimate/backwards-compatible-fix
Browse files Browse the repository at this point in the history
Add back FactoryHelper.toClass(ClassFile cf, ClassLoader loader, Prot…
  • Loading branch information
chibash committed Apr 8, 2019
2 parents e3f70e8 + 7a91c46 commit a332834
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 a332834

Please sign in to comment.