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

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/bytecode   ConstPool.java Descriptor.java
  Log:
  added ClassPool.getCtClass() and fixed related bugs.
  
  Revision  Changes    Path
  1.25      +5 -1      javassist/src/main/javassist/bytecode/ConstPool.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: ConstPool.java
  ===================================================================
  RCS file: /cvsroot/jboss/javassist/src/main/javassist/bytecode/ConstPool.java,v
  retrieving revision 1.24
  retrieving revision 1.25
  diff -u -b -r1.24 -r1.25
  --- ConstPool.java	19 Jul 2007 10:21:26 -0000	1.24
  +++ ConstPool.java	4 Jul 2008 09:17:49 -0000	1.25
  @@ -175,7 +175,11 @@
        * at the given index.
        *
        * @return  a fully-qualified class or interface name specified
  -     *          by <code>name_index</code>.
  +     *          by <code>name_index</code>.  If the type is an array
  +     *          type, this method returns an encoded name like
  +     *          <code>[java.lang.Object;</code> (note that the separators
  +     *          are not slashes but dots).
  +     * @see javassist.ClassPool#getCtClass(String)
        */
       public String getClassInfo(int index) {
           ClassInfo c = (ClassInfo)getItem(index);
  
  
  
  1.24      +6 -1      javassist/src/main/javassist/bytecode/Descriptor.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: Descriptor.java
  ===================================================================
  RCS file: /cvsroot/jboss/javassist/src/main/javassist/bytecode/Descriptor.java,v
  retrieving revision 1.23
  retrieving revision 1.24
  diff -u -b -r1.23 -r1.24
  --- Descriptor.java	13 Jun 2008 10:31:52 -0000	1.23
  +++ Descriptor.java	4 Jul 2008 09:17:49 -0000	1.24
  @@ -41,6 +41,11 @@
       /**
        * Converts a class name from the internal representation used in
        * the JVM to the normal one used in Java.
  +     * This method does not deal with an array type name such as
  +     * "[Ljava/lang/Object;" and "[I;".  For such names, use
  +     * <code>toClassName()</code>.
  +     *
  +     * @see #toClassName(String)
        */
       public static String toJavaName(String classname) {
           return classname.replace('/', '.');
  @@ -525,7 +530,7 @@
        * it accepts <code>Ljava.lang.Object;</code>
        * as well as <code>Ljava/lang/Object;</code>.
        *
  -     * @param desc descriptor
  +     * @param desc descriptor.
        * @param cp   the class pool used for obtaining
        *             a <code>CtClass</code> object.
        */
  
  
  



More information about the jboss-cvs-commits mailing list