From 9329ddd9d346ad2474d249777c172e8015148cf1 Mon Sep 17 00:00:00 2001 From: aclement Date: Thu, 18 Aug 2005 07:50:22 +0000 Subject: [PATCH] I think that astore at the start of the exception block is the right pattern to use. I remember some bug about a decompiler choking on no store when it was expected. --- .../aspectj/ajdt/internal/compiler/ast/AspectDeclaration.java | 1 + 1 file changed, 1 insertion(+) diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/AspectDeclaration.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/AspectDeclaration.java index 1039559cc..9203a43ab 100644 --- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/AspectDeclaration.java +++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/AspectDeclaration.java @@ -749,6 +749,7 @@ public class AspectDeclaration extends TypeDeclaration { exc.placeEnd(); codeStream.areturn(); exc.place(); + codeStream.astore_1(); // this just returns null now - the old version used to throw the caught exception! codeStream.aconst_null(); codeStream.areturn(); -- 2.39.5