diff options
author | aclement <aclement> | 2005-08-15 13:56:59 +0000 |
---|---|---|
committer | aclement <aclement> | 2005-08-15 13:56:59 +0000 |
commit | d2ab7c219daefa33aef2e934c1b1d660cdad401e (patch) | |
tree | 5b18d32397d1d4eabcfd1f60b6545f3708ea976b /org.aspectj.ajdt.core | |
parent | 32964a06b9ce29d5279f89aee04e9c8be932a81d (diff) | |
download | aspectj-d2ab7c219daefa33aef2e934c1b1d660cdad401e.tar.gz aspectj-d2ab7c219daefa33aef2e934c1b1d660cdad401e.zip |
Fix for pr92880: I've removed the exception clause from the declaration of ajc$getInstance() and modified the internals to return null if an exception occurs rather than rethrowing it. I've only changed the code gen in the compiler layer, not in the weaver layer. (interestingly with only my compiler layer change, no tests fail...)
Diffstat (limited to 'org.aspectj.ajdt.core')
-rw-r--r-- | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/AspectDeclaration.java | 6 |
1 files changed, 3 insertions, 3 deletions
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 1b0d3eaea..1039559cc 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,9 +749,9 @@ public class AspectDeclaration extends TypeDeclaration { exc.placeEnd(); codeStream.areturn(); exc.place(); - codeStream.astore_1(); - codeStream.aload_1(); - codeStream.athrow(); + // this just returns null now - the old version used to throw the caught exception! + codeStream.aconst_null(); + codeStream.areturn(); }}); } |