aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkkhan <kkhan@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>2007-02-09 16:32:46 +0000
committerkkhan <kkhan@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>2007-02-09 16:32:46 +0000
commit59dcdf0551f844861aeb6768509b1b0ba220a8f0 (patch)
treefb93d18086c5cfc5cea4f8cd5deea5de2360be6f
parent4752e2e80ce31f1775420b39e6c5d93f7f13e127 (diff)
downloadjavassist-59dcdf0551f844861aeb6768509b1b0ba220a8f0.tar.gz
javassist-59dcdf0551f844861aeb6768509b1b0ba220a8f0.zip
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
-rw-r--r--src/main/javassist/bytecode/SignatureAttribute.java5
-rw-r--r--src/main/javassist/scopedpool/ScopedClassPoolFactoryImpl.java6
2 files changed, 7 insertions, 4 deletions
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 <a href="kabir.khan@jboss.com">Kabir Khan</a>
- * @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);
}
}