[jboss-cvs] javassist/src/main/javassist/expr ...

Shigeru Chiba chiba at is.titech.ac.jp
Fri Jul 4 05:17:49 EDT 2008


  User: chiba   
  Date: 08/07/04 05:17:49

  Modified:    src/main/javassist/expr    Handler.java Cast.java
                        Instanceof.java
  Log:
  added ClassPool.getCtClass() and fixed related bugs.
  
  Revision  Changes    Path
  1.9       +1 -1      javassist/src/main/javassist/expr/Handler.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: Handler.java
  ===================================================================
  RCS file: /cvsroot/jboss/javassist/src/main/javassist/expr/Handler.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -b -r1.8 -r1.9
  --- Handler.java	4 Jun 2007 03:11:12 -0000	1.8
  +++ Handler.java	4 Jul 2008 09:17:49 -0000	1.9
  @@ -73,7 +73,7 @@
       public CtClass getType() throws NotFoundException {
           ConstPool cp = getConstPool();
           String name = cp.getClassInfo(etable.catchType(index));
  -        return Descriptor.toCtClass(name, thisClass.getClassPool());
  +        return thisClass.getClassPool().getCtClass(name);
       }
   
       /**
  
  
  
  1.14      +1 -1      javassist/src/main/javassist/expr/Cast.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: Cast.java
  ===================================================================
  RCS file: /cvsroot/jboss/javassist/src/main/javassist/expr/Cast.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -b -r1.13 -r1.14
  --- Cast.java	22 Jun 2007 11:50:48 -0000	1.13
  +++ Cast.java	4 Jul 2008 09:17:49 -0000	1.14
  @@ -65,7 +65,7 @@
           int pos = currentPos;
           int index = iterator.u16bitAt(pos + 1);
           String name = cp.getClassInfo(index);
  -        return Descriptor.toCtClass(name, thisClass.getClassPool());
  +        return thisClass.getClassPool().getCtClass(name);
       }
   
       /**
  
  
  
  1.14      +1 -1      javassist/src/main/javassist/expr/Instanceof.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: Instanceof.java
  ===================================================================
  RCS file: /cvsroot/jboss/javassist/src/main/javassist/expr/Instanceof.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -b -r1.13 -r1.14
  --- Instanceof.java	22 Jun 2007 11:50:48 -0000	1.13
  +++ Instanceof.java	4 Jul 2008 09:17:49 -0000	1.14
  @@ -68,7 +68,7 @@
           int pos = currentPos;
           int index = iterator.u16bitAt(pos + 1);
           String name = cp.getClassInfo(index);
  -        return Descriptor.toCtClass(name, thisClass.getClassPool());
  +        return thisClass.getClassPool().getCtClass(name);
       }
   
       /**
  
  
  



More information about the jboss-cvs-commits mailing list