Pārlūkot izejas kodu

Merge pull request #254 from soul2zimate/backwards-compatible-fix

Add back FactoryHelper.toClass(ClassFile cf, ClassLoader loader, Prot…
tags/rel_3_25_0_ga
Shigeru Chiba pirms 5 gadiem
vecāks
revīzija
a332834881
Revīzijas autora e-pasta adrese nav piesaistīta nevienam kontam
1 mainītis faili ar 18 papildinājumiem un 0 dzēšanām
  1. 18
    0
      src/main/javassist/util/proxy/FactoryHelper.java

+ 18
- 0
src/main/javassist/util/proxy/FactoryHelper.java Parādīt failu

@@ -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.
*

Notiek ielāde…
Atcelt
Saglabāt