jakarta-bcel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From md...@apache.org
Subject cvs commit: jakarta-bcel/examples JasminVisitor.java
Date Thu, 07 Feb 2002 16:30:43 GMT
mdahm       02/02/07 08:30:43

  Modified:    examples JasminVisitor.java
  Log:
  added check, synthetic may be set for fields too
  
  Revision  Changes    Path
  1.2       +5 -2      jakarta-bcel/examples/JasminVisitor.java
  
  Index: JasminVisitor.java
  ===================================================================
  RCS file: /home/cvs/jakarta-bcel/examples/JasminVisitor.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- JasminVisitor.java	29 Oct 2001 20:01:10 -0000	1.1
  +++ JasminVisitor.java	7 Feb 2002 16:30:43 -0000	1.2
  @@ -10,7 +10,7 @@
    * Disassemble Java class object into the <A HREF="http://www.cat.nyu.edu/meyer/jasmin">
    * JASMIN</A> format.
    *
  - * @version $Id: JasminVisitor.java,v 1.1 2001/10/29 20:01:10 jvanzyl Exp $
  + * @version $Id: JasminVisitor.java,v 1.2 2002/02/07 16:30:43 mdahm Exp $
    * @author  <A HREF="http://www.berlin.de/~markus.dahm/">M. Dahm</A>
    */
   public class JasminVisitor extends org.apache.bcel.classfile.EmptyVisitor {
  @@ -79,7 +79,10 @@
     }
   
     public void visitDeprecated(Deprecated attribute) { printEndMethod(attribute); }
  -  public void visitSynthetic(Synthetic attribute) { printEndMethod(attribute); }
  +  public void visitSynthetic(Synthetic attribute) {
  +    if(method != null)
  +      printEndMethod(attribute);
  +  }
   
     public void visitMethod(Method method) {
       out.println("\n.method " + Utility.accessToString(method.getAccessFlags()) +
  
  
  

--
To unsubscribe, e-mail:   <mailto:bcel-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:bcel-dev-help@jakarta.apache.org>


Mime
View raw message