From: Chao Wang Date: Mon, 25 Mar 2019 03:34:00 +0000 (+0800) Subject: Add back FactoryHelper.toClass(ClassFile cf, ClassLoader loader, ProtectionDomain... X-Git-Tag: rel_3_25_0_ga~3^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7a91c46e96e07b7bd19dfb04ec6ab5c9828752b5;p=javassist.git Add back FactoryHelper.toClass(ClassFile cf, ClassLoader loader, ProtectionDomain domain) for backward compatibility in minor release. --- diff --git a/src/main/javassist/util/proxy/FactoryHelper.java b/src/main/javassist/util/proxy/FactoryHelper.java index 1928fdd5..5d77f57c 100644 --- a/src/main/javassist/util/proxy/FactoryHelper.java +++ b/src/main/javassist/util/proxy/FactoryHelper.java @@ -113,6 +113,24 @@ public class FactoryHelper { 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. *