From 82f217fa97084beaa1c4c88ec2e96e4cf83e8aad Mon Sep 17 00:00:00 2001 From: aclement Date: Wed, 5 Jul 2006 08:22:55 +0000 Subject: test and fix for 148693 --- .../org/aspectj/ajdt/internal/compiler/ast/AspectDeclaration.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'org.aspectj.ajdt.core/src') 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 24aae7c37..5d3595273 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 @@ -434,7 +434,12 @@ public class AspectDeclaration extends TypeDeclaration { gen.generate(codeStream); // body ends here if (codeStream.pcToSourceMapSize==0) codeStream.recordPositionsFrom(0,1); + boolean b = codeStream.generateLocalVariableTableAttributes; // pr148693 + if (codeStream.maxLocals==0) + codeStream.generateLocalVariableTableAttributes=false; classFile.completeCodeAttribute(codeAttributeOffset); + codeStream.generateLocalVariableTableAttributes=b; + attributeNumber++; classFile.completeMethodInfo(methodAttributeOffset, attributeNumber); } -- cgit v1.2.3