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

Shigeru Chiba chiba at is.titech.ac.jp
Fri Dec 8 02:00:36 EST 2006


  User: chiba   
  Date: 06/12/08 02:00:36

  Modified:    src/main/javassist/expr  ExprEditor.java
  Log:
  minor bug fix
  
  Revision  Changes    Path
  1.11      +5 -1      javassist/src/main/javassist/expr/ExprEditor.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: ExprEditor.java
  ===================================================================
  RCS file: /cvsroot/jboss/javassist/src/main/javassist/expr/ExprEditor.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -b -r1.10 -r1.11
  --- ExprEditor.java	9 Apr 2006 15:07:41 -0000	1.10
  +++ ExprEditor.java	8 Dec 2006 07:00:36 -0000	1.11
  @@ -101,7 +101,11 @@
               }
           }
   
  +        // codeAttr might be modified by other partys
  +        // so I check the current value of max-locals.
  +        if (codeAttr.getMaxLocals() < context.maxLocals)
           codeAttr.setMaxLocals(context.maxLocals);
  +
           codeAttr.setMaxStack(codeAttr.getMaxStack() + context.maxStack);
           return edited;
       }
  
  
  



More information about the jboss-cvs-commits mailing list