]> source.dussan.org Git - javassist.git/commitdiff
Differentiate between null bootstrap classloader and when the classloader has been...
authorkkhan <kkhan@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>
Fri, 9 Feb 2007 16:32:46 +0000 (16:32 +0000)
committerkkhan <kkhan@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>
Fri, 9 Feb 2007 16:32:46 +0000 (16:32 +0000)
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@349 30ef5769-5b8d-40dd-aea6-55b5d6557bb3

src/main/javassist/bytecode/SignatureAttribute.java
src/main/javassist/scopedpool/ScopedClassPoolFactoryImpl.java

index 808809edce08050120b8955136dfe49499f204c2..41748e7cf6baff5f20faf7579ac112e7b25ef868 100644 (file)
@@ -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
     {
index bcbcbec68ca2b357e35774a2f161ec5fa5255f49..b4b21171ad9849ae15f8e7686cf1a8072511242b 100644 (file)
@@ -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);
     }
 }