summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoracolyer <acolyer>2005-08-10 08:38:32 +0000
committeracolyer <acolyer>2005-08-10 08:38:32 +0000
commitcb4c7214369154984d59cec11bfb909be37bf3ac (patch)
tree79154ab5a59c9d4292fbab87c6bd91f8006644cf
parent0a1b33eeb5d154b81a6d060670d49df6f6d8b81e (diff)
downloadaspectj-cb4c7214369154984d59cec11bfb909be37bf3ac.tar.gz
aspectj-cb4c7214369154984d59cec11bfb909be37bf3ac.zip
ensure that the generic signature information for advice is retained
-rw-r--r--org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/AdviceDeclaration.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/AdviceDeclaration.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/AdviceDeclaration.java
index d8d39277b..98cb80d24 100644
--- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/AdviceDeclaration.java
+++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/AdviceDeclaration.java
@@ -98,7 +98,9 @@ public class AdviceDeclaration extends AjMethodDeclaration {
ClassScope upperScope = (ClassScope)scope.parent; //!!! safety
- modifiers = binding.modifiers = checkAndSetModifiers(modifiers, upperScope);
+ modifiers = checkAndSetModifiers(modifiers, upperScope);
+ int bindingModifiers = (modifiers | (binding.modifiers & AccGenericSignature));
+ binding.modifiers = bindingModifiers;
if (kind == AdviceKind.AfterThrowing && extraArgument != null) {
TypeBinding argTb = extraArgument.binding.type;