You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bcel-dev@jakarta.apache.org by md...@apache.org on 2002/06/29 17:14:43 UTC
cvs commit: jakarta-bcel/src/java/org/apache/bcel/util BCELFactory.java
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 + ");");
}
}
}
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>