diff options
author | jhugunin <jhugunin> | 2003-09-12 16:49:58 +0000 |
---|---|---|
committer | jhugunin <jhugunin> | 2003-09-12 16:49:58 +0000 |
commit | b5127388a3b5a2403e8d8944766bbe1895e09530 (patch) | |
tree | 1bc69df69075a48d0180b21e080f4c9f7bcaf9da /tests/ajcTests.xml | |
parent | 3b79af95c2373158d6b4149476746e880866e385 (diff) | |
download | aspectj-b5127388a3b5a2403e8d8944766bbe1895e09530.tar.gz aspectj-b5127388a3b5a2403e8d8944766bbe1895e09530.zip |
fix and test for Bugzilla Bug 42993
Language regression, or possible language improvement?
The problem was caused by moving name binding in pointcut declarations to
happen before declare parents are evaluated. Because of this, the
compiler doesn't know that ContainerDescriptor isa Key when resolving
the ContainerLoader.containerLoads reference.
The change in ordering was made to fix a bug reported in declare error
and declare soft whose pcds where being evaluated before name binding
had happened in the pointcut declarations. Unfortunately, declare error
and declare soft are concretized at the same time as declare parents
(and all other declares ;-), so this move also led to the regression
noted above.
Diffstat (limited to 'tests/ajcTests.xml')
-rw-r--r-- | tests/ajcTests.xml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/ajcTests.xml b/tests/ajcTests.xml index a50e6940d..39dd3b146 100644 --- a/tests/ajcTests.xml +++ b/tests/ajcTests.xml @@ -6751,4 +6751,10 @@ <compile files="aspects/Softener.aj,test/NoSoftener.java"/> <run class="test.NoSoftener"/> </ajc-test> + + <ajc-test dir="bugs" pr="42993" + title="Interaction between pointcut binding and declare parents"> + <compile files="ParentsAndPointcuts.java"/> + <run class="ParentsAndPointcuts"/> + </ajc-test> </suite> |