diff options
author | aclement <aclement> | 2008-09-17 18:36:12 +0000 |
---|---|---|
committer | aclement <aclement> | 2008-09-17 18:36:12 +0000 |
commit | 8ed07c9e61d00d788e7d05d6c90bbeb3d378dcff (patch) | |
tree | 277edc2048a8453eba8d41af3b88d6122d7f4c1a /tests/multiIncremental | |
parent | 8e14f28e1ee8658507c2fa7caf2f458a1adac436 (diff) | |
download | aspectj-8ed07c9e61d00d788e7d05d6c90bbeb3d378dcff.tar.gz aspectj-8ed07c9e61d00d788e7d05d6c90bbeb3d378dcff.zip |
jdt like handle fixes: anonymous inner classes
Diffstat (limited to 'tests/multiIncremental')
-rw-r--r-- | tests/multiIncremental/AdviceHandles/base/src/Handles.aj | 33 |
1 files changed, 24 insertions, 9 deletions
diff --git a/tests/multiIncremental/AdviceHandles/base/src/Handles.aj b/tests/multiIncremental/AdviceHandles/base/src/Handles.aj index ffb9aef42..2dfa89908 100644 --- a/tests/multiIncremental/AdviceHandles/base/src/Handles.aj +++ b/tests/multiIncremental/AdviceHandles/base/src/Handles.aj @@ -1,45 +1,60 @@ package spacewar; -//=Spacewar Example/src<spacewar*Handles.aj}Handles +//=AdviceHandles/src<spacewar*Handles.aj}Handles public aspect Handles { - // =Spacewar Example/src<spacewar*Handles.aj}Handles&before + // =AdviceHandles/src<spacewar*Handles.aj}Handles&before before() : execution(* *..*()) { } - // =Spacewar Example/src<spacewar*Handles.aj}Handles&before!2 + // =AdviceHandles/src<spacewar*Handles.aj}Handles&before!2 before() : execution(* *..*()) { } - // =Spacewar Example/src<spacewar*Handles.aj}Handles&before&I + // =AdviceHandles/src<spacewar*Handles.aj}Handles&before&I before(int x) : execution(* *..*(int)) && args(x) { } - // =Spacewar Example/src<spacewar*Handles.aj}Handles&before&I!2 + // =AdviceHandles/src<spacewar*Handles.aj}Handles&before&I!2 before(int x) : execution(* *..*(int)) && args(x) { } - // =Spacewar Example/src<spacewar*Handles.aj}Handles&after + // =AdviceHandles/src<spacewar*Handles.aj}Handles&after after() : execution(* *..*()) { } - // =Spacewar Example/src<spacewar*Handles.aj}Handles&afterReturning + // =AdviceHandles/src<spacewar*Handles.aj}Handles&afterReturning after() returning() : execution(* *..*()) { } - // =Spacewar Example/src<spacewar*Handles.aj}Handles&afterThrowing + // =AdviceHandles/src<spacewar*Handles.aj}Handles&afterThrowing after() throwing(): execution(* *..*()) { } - // =Spacewar Example/src<spacewar*Handles.aj}Handles&afterThrowing&I + // =AdviceHandles/src<spacewar*Handles.aj}Handles&afterThrowing&I after(int x) throwing(): execution(* *..*(int)) && args(x) { } + int x() { + // =AdviceHandles/src<spacewar*Handles.aj}Handles~x[NamedClass + class NamedClass { + void doIt() { + } + } + return 0; + } + + interface I {} + public void foo() { + new I() {}; + new I() {}; + } + } |