From: kkhan Date: Fri, 9 Feb 2007 16:32:46 +0000 (+0000) Subject: Differentiate between null bootstrap classloader and when the classloader has been... X-Git-Tag: rel_3_17_1_ga~286 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=59dcdf0551f844861aeb6768509b1b0ba220a8f0;p=javassist.git Differentiate between null bootstrap classloader and when the classloader has been garbage collected git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@349 30ef5769-5b8d-40dd-aea6-55b5d6557bb3 --- diff --git a/src/main/javassist/bytecode/SignatureAttribute.java b/src/main/javassist/bytecode/SignatureAttribute.java index 808809ed..41748e7c 100644 --- a/src/main/javassist/bytecode/SignatureAttribute.java +++ b/src/main/javassist/bytecode/SignatureAttribute.java @@ -610,7 +610,10 @@ public class SignatureAttribute extends AttributeInfo { ObjectType[] ex = (ObjectType[])exceptions.toArray(new ObjectType[exceptions.size()]); return new MethodSignature(tp, p, ret, ex); } - +boolean getB() +{ + return false; +} private static TypeParameter[] parseTypeParams(String sig, Cursor cur) throws BadBytecode { diff --git a/src/main/javassist/scopedpool/ScopedClassPoolFactoryImpl.java b/src/main/javassist/scopedpool/ScopedClassPoolFactoryImpl.java index bcbcbec6..b4b21171 100644 --- a/src/main/javassist/scopedpool/ScopedClassPoolFactoryImpl.java +++ b/src/main/javassist/scopedpool/ScopedClassPoolFactoryImpl.java @@ -21,7 +21,7 @@ import javassist.ClassPool; * An implementation of factory. * * @author Kabir Khan - * @version $Revision: 1.3 $ + * @version $Revision: 1.4 $ */ public class ScopedClassPoolFactoryImpl implements ScopedClassPoolFactory { /** @@ -29,7 +29,7 @@ public class ScopedClassPoolFactoryImpl implements ScopedClassPoolFactory { */ public ScopedClassPool create(ClassLoader cl, ClassPool src, ScopedClassPoolRepository repository) { - return new ScopedClassPool(cl, src, repository); + return new ScopedClassPool(cl, src, repository, false); } /** @@ -37,6 +37,6 @@ public class ScopedClassPoolFactoryImpl implements ScopedClassPoolFactory { */ public ScopedClassPool create(ClassPool src, ScopedClassPoolRepository repository) { - return new ScopedClassPool(null, src, repository); + return new ScopedClassPool(null, src, repository, true); } }