From 7bbd1f419239dc9e8b46e7fd912b2bc007bbd76a Mon Sep 17 00:00:00 2001 From: jhugunin Date: Wed, 14 Jan 2004 11:28:13 +0000 Subject: Fix for Bugzilla Bug 46280 compiler issues error on inner aspects when privilieged --- .../src/org/aspectj/ajdt/internal/compiler/parser/AjParser.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'org.aspectj.ajdt.core') diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/parser/AjParser.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/parser/AjParser.java index 1b1512d28..be36f8dca 100644 --- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/parser/AjParser.java +++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/parser/AjParser.java @@ -230,6 +230,10 @@ public class AjParser extends Parser { } aspectDecl.modifiersSourceStart = intStack[intPtr--]; aspectDecl.modifiers = intStack[intPtr--]; + if (isPrivileged) { + aspectDecl.modifiersSourceStart = intStack[intPtr--]; + aspectDecl.modifiers |= intStack[intPtr--]; + } if (aspectDecl.modifiersSourceStart >= 0) { aspectDecl.declarationSourceStart = aspectDecl.modifiersSourceStart; } -- cgit v1.2.3