cvs commit: jakarta-bcel/src/java/org/apache/bcel/util BCELFactory.java

[email protected]
Newsgroups gmane.comp.jakarta.bcel.devel
Message-ID <[email protected]>
mdahm       2002/06/29 08:14:43

  Modified:    src/java/org/apache/bcel/util BCELFactory.java
  Log:
  Bug fix for finally
  
  Revision  Changes    Path
  1.2       +5 -3      jakarta-bcel/src/java/org/apache/bcel/util/BCELFactory.java
  
  Index: BCELFactory.java
  ===================================================================
  RCS file: /home/cvs/jakarta-bcel/src/java/org/apache/bcel/util/BCELFactory.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- BCELFactory.java	12 Mar 2002 17:52:00 -0000	1.1
  +++ BCELFactory.java	29 Jun 2002 15:14:43 -0000	1.2
  @@ -335,13 +335,15 @@
       CodeExceptionGen[] handlers = _mg.getExceptionHandlers();
   
       for(int i=0; i < handlers.length; i++) {
  -      CodeExceptionGen h = handlers[i];
  +      CodeExceptionGen h    = handlers[i];
  +      String           type = (h.getCatchType() == null)?
  +	"null" : BCELifier.printType(h.getCatchType());
   
         _out.println("    method.addExceptionHandler(" +
   		   "ih_" + h.getStartPC().getPosition() + ", " +
   		   "ih_" + h.getEndPC().getPosition() + ", " +
   		   "ih_" + h.getHandlerPC().getPosition() + ", " +
  -		   BCELifier.printType(h.getCatchType()) + ");");
  +		   type + ");");
       }
     }
   }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.