summaryrefslogtreecommitdiffstats
path: root/src/main/javassist/ClassPool.java
diff options
context:
space:
mode:
authorchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>2006-08-14 14:48:47 +0000
committerchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>2006-08-14 14:48:47 +0000
commit7a730c89d7e58896d381dff5800c32a424c44b6b (patch)
tree38e9478bb90636fa7f895aea135c22afd5d96ed5 /src/main/javassist/ClassPool.java
parent8a5fe21253fae4faa7746b9c81aac4db6e6c00c5 (diff)
downloadjavassist-7a730c89d7e58896d381dff5800c32a424c44b6b.tar.gz
javassist-7a730c89d7e58896d381dff5800c32a424c44b6b.zip
deprecated ClassPool#toClass(CtClass,ClassLoader).
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@310 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
Diffstat (limited to 'src/main/javassist/ClassPool.java')
-rw-r--r--src/main/javassist/ClassPool.java13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/main/javassist/ClassPool.java b/src/main/javassist/ClassPool.java
index ba25f96e..1fb0082a 100644
--- a/src/main/javassist/ClassPool.java
+++ b/src/main/javassist/ClassPool.java
@@ -791,7 +791,9 @@ public class ClassPool {
* @see #getClassLoader()
*/
public Class toClass(CtClass clazz) throws CannotCompileException {
- return toClass(clazz, getClassLoader(), null);
+ // Some subclasses of ClassPool may override toClass(CtClass,ClassLoader).
+ // So we should call that method instead of toClass(.., ProtectionDomain).
+ return toClass(clazz, getClassLoader());
}
/**
@@ -825,13 +827,12 @@ public class ClassPool {
* work with a security manager or a signed jar file because a
* protection domain is not specified.
*
- * <p><b>Note:</b> A subclass of <code>ClassPool</code> that has been
- * overriding this method must be modified. It must override
+ * @deprecated Replaced by {@link #toClass(CtClass,ClassLoader,ProtectionDomain)}.
+ * A subclass of <code>ClassPool</code> that has been
+ * overriding this method should be modified. It should override
* {@link #toClass(CtClass,ClassLoader,ProtectionDomain)}.
- *
- * @deprecated Replaced by {@link #toClass(CtClass,ClassLoader,ProtectionDomain)}
*/
- public final Class toClass(CtClass ct, ClassLoader loader)
+ public Class toClass(CtClass ct, ClassLoader loader)
throws CannotCompileException
{
return toClass(ct, loader, null);