aboutsummaryrefslogtreecommitdiffstats
path: root/org.aspectj.ajdt.core
diff options
context:
space:
mode:
Diffstat (limited to 'org.aspectj.ajdt.core')
-rw-r--r--org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/AspectDeclaration.java5
1 files changed, 5 insertions, 0 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 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);
}