From: jhugunin Date: Tue, 27 Jan 2004 19:47:12 +0000 (+0000) Subject: generates accurate max stack height information for aspectOf method X-Git-Tag: v_preCompileLoopAlteration~63 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=47e2459b15269743f137bc15245c7dfc3a4d6907;p=aspectj.git generates accurate max stack height information for aspectOf method this is a long-standing bug that was masked by the weaver which would always recompute this field. optimizations to the weaver made this bug appear again. --- 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 f2f343a69..a3cff8ae6 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 @@ -527,6 +527,7 @@ public class AspectDeclaration extends TypeDeclaration { codeStream.areturn(); isNull.place(); + codeStream.incrStackSize(+1); // the dup trick above confuses the stack counter codeStream.new_(world.makeTypeBinding(AjcMemberMaker.NO_ASPECT_BOUND_EXCEPTION)); codeStream.dup(); codeStream.ldc(typeX.getNameAsIdentifier());