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

Shigeru Chiba chiba at is.titech.ac.jp
Tue Feb 6 11:40:36 EST 2007


  User: chiba   
  Date: 07/02/06 11:40:36

  Modified:    src/main/javassist   CtField.java CtBehavior.java
  Log:
  supported generic type signatures.
  
  Revision  Changes    Path
  1.20      +11 -0     javassist/src/main/javassist/CtField.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: CtField.java
  ===================================================================
  RCS file: /cvsroot/jboss/javassist/src/main/javassist/CtField.java,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -b -r1.19 -r1.20
  --- CtField.java	11 Aug 2006 04:22:50 -0000	1.19
  +++ CtField.java	6 Feb 2007 16:40:36 -0000	1.20
  @@ -285,6 +285,17 @@
        * Returns the character string representing the type of the field.
        * If two fields have the same type,
        * <code>getSignature()</code> returns the same string.
  +     *
  +     * <p>Note that the returned string is not the type signature
  +     * contained in the <code>SignatureAttirbute</code>.  It is
  +     * a descriptor.  To obtain a type signature, call the following
  +     * methods:
  +     * 
  +     * <ul><pre>getFieldInfo().getAttribute(SignatureAttribute.tag)
  +     * </pre></ul>
  +     *
  +     * @see javassist.bytecode.Descriptor
  +     * @see javassist.bytecode.SignatureAttribute
        */
       public String getSignature() {
           return fieldInfo.getDescriptor();
  
  
  
  1.34      +9 -0      javassist/src/main/javassist/CtBehavior.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: CtBehavior.java
  ===================================================================
  RCS file: /cvsroot/jboss/javassist/src/main/javassist/CtBehavior.java,v
  retrieving revision 1.33
  retrieving revision 1.34
  diff -u -b -r1.33 -r1.34
  --- CtBehavior.java	23 Nov 2006 02:49:03 -0000	1.33
  +++ CtBehavior.java	6 Feb 2007 16:40:36 -0000	1.34
  @@ -262,7 +262,16 @@
        * and the return type, <code>getSignature()</code> returns the
        * same string (the return type of constructors is <code>void</code>).
        *
  +     * <p>Note that the returned string is not the type signature
  +     * contained in the <code>SignatureAttirbute</code>.  It is
  +     * a descriptor.  To obtain a type signature, call the following
  +     * methods:
  +     * 
  +     * <ul><pre>getMethodInfo().getAttribute(SignatureAttribute.tag)
  +     * </pre></ul>
  +     *
        * @see javassist.bytecode.Descriptor
  +     * @see javassist.bytecode.SignatureAttribute
        */
       public String getSignature() {
           return methodInfo.getDescriptor();
  
  
  



More information about the jboss-cvs-commits mailing list