import eclipse 3.1 M4 compiler
[org.ibex.tool.git] / src / org / eclipse / jdt / internal / compiler / ast / SubRoutineStatement.java
index 59b697b..754efdf 100644 (file)
@@ -44,8 +44,10 @@ public abstract class SubRoutineStatement extends Statement {
                if (currentLabel.start == currentLabel.codeStream.position) {
                        // discard empty exception handler
                        this.anyExceptionLabels[--this.anyExceptionLabelsCount] = null;
+                       currentLabel.codeStream.removeExceptionHandler(currentLabel);
+               } else {
+                       currentLabel.placeEnd();
                }
-               currentLabel.placeEnd();
        }
        
        public void placeAllAnyExceptionHandlers() {