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

Shigeru Chiba chiba at is.titech.ac.jp
Tue Sep 9 06:31:18 EDT 2008


  User: chiba   
  Date: 08/09/09 06:31:17

  Modified:    src/main/javassist   CtNewWrappedMethod.java
                        CtNewMethod.java
  Log:
  The method implicitly appended by CtNewMethod.wrapped() now has a synthetic attribute.
  
  Revision  Changes    Path
  1.12      +1 -0      javassist/src/main/javassist/CtNewWrappedMethod.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: CtNewWrappedMethod.java
  ===================================================================
  RCS file: /cvsroot/jboss/javassist/src/main/javassist/CtNewWrappedMethod.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -b -r1.11 -r1.12
  --- CtNewWrappedMethod.java	8 Jun 2007 13:32:10 -0000	1.11
  +++ CtNewWrappedMethod.java	9 Sep 2008 10:31:17 -0000	1.12
  @@ -149,6 +149,7 @@
                                                map);
               int acc = body.getAccessFlags();
               body.setAccessFlags(AccessFlag.setPrivate(acc));
  +            body.addAttribute(new SyntheticAttribute(classfile.getConstPool()));
               // a stack map is copied.  rebuilding it is not needed. 
               classfile.addMethod(body);
               bodies.put(src, bodyname);
  
  
  
  1.13      +2 -2      javassist/src/main/javassist/CtNewMethod.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: CtNewMethod.java
  ===================================================================
  RCS file: /cvsroot/jboss/javassist/src/main/javassist/CtNewMethod.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -b -r1.12 -r1.13
  --- CtNewMethod.java	4 Jun 2007 03:11:11 -0000	1.12
  +++ CtNewMethod.java	9 Sep 2008 10:31:17 -0000	1.13
  @@ -357,7 +357,7 @@
        * Creates a wrapped method.  The wrapped method receives parameters
        * in the form of an array of <code>Object</code>.
        *
  -     * <p>The body of the created method is a copy of the body of a method
  +     * <p>The body of the created method is a copy of the body of the method
        * specified by <code>body</code>.  However, it is wrapped in
        * parameter-conversion code.
        *
  @@ -423,7 +423,7 @@
        * <ul><pre>public class intVector extends java.util.Vector {
        *     public void add(int p0) {
        *         Object[] args = new Object[] { p0 };
  -     *         // begin of copied body
  +     *         // begin of the copied body
        *         super.addElement(args[0]);
        *         Object result = null;
        *         // end
  
  
  



More information about the jboss-cvs-commits mailing list