diff options
author | acolyer <acolyer> | 2005-09-01 12:39:40 +0000 |
---|---|---|
committer | acolyer <acolyer> | 2005-09-01 12:39:40 +0000 |
commit | 0c44c16b6cd65aeca12a3627a8a0f22416c1801f (patch) | |
tree | 190dcdade0e9708963036cc10a487a094156b645 /tests | |
parent | a114d244a365a653b52764110d6d312997d70c3e (diff) | |
download | aspectj-0c44c16b6cd65aeca12a3627a8a0f22416c1801f.tar.gz aspectj-0c44c16b6cd65aeca12a3627a8a0f22416c1801f.zip |
tests for pr59397, synthetic ITC arg confusing matching
Diffstat (limited to 'tests')
-rw-r--r-- | tests/bugs150/pr59397.aj | 6 | ||||
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc120/ajc120-tests.xml | 1 | ||||
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java | 4 | ||||
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc150/ajc150.xml | 6 |
4 files changed, 16 insertions, 1 deletions
diff --git a/tests/bugs150/pr59397.aj b/tests/bugs150/pr59397.aj new file mode 100644 index 000000000..a8c157c9e --- /dev/null +++ b/tests/bugs150/pr59397.aj @@ -0,0 +1,6 @@ +aspect A { + HW.new(String s) {} + declare warning : initialization(HW.new(String,A)) : "should not match"; + declare warning : initialization(HW.new(String)) : "should match"; +} +class HW {}
\ No newline at end of file diff --git a/tests/src/org/aspectj/systemtest/ajc120/ajc120-tests.xml b/tests/src/org/aspectj/systemtest/ajc120/ajc120-tests.xml index 8381d4e01..982a8934d 100644 --- a/tests/src/org/aspectj/systemtest/ajc120/ajc120-tests.xml +++ b/tests/src/org/aspectj/systemtest/ajc120/ajc120-tests.xml @@ -430,7 +430,6 @@ pr="59397" title="NPE in compiler when using (an unusual) declare warning against a ctor ITD"> <compile files="DecwInitializationITD.java"> - <message kind="warning" line="16"/> </compile> </ajc-test> diff --git a/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java b/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java index b2d388181..38e4ded22 100644 --- a/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java +++ b/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java @@ -354,6 +354,10 @@ public class Ajc150Tests extends org.aspectj.testing.XMLBasedAjcTestCase { runTest("no unused warnings on aspect types"); } + public void testSyntheticArgumentsOnITDConstructorsNotUsedInMatching() { + runTest("synthetic arguments on itd cons are not used in matching"); + } + // helper methods..... public SyntheticRepository createRepos(File cpentry) { diff --git a/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml b/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml index f3e301cec..1450fda38 100644 --- a/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml +++ b/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml @@ -423,6 +423,12 @@ <compile files="pr74048.aj" options="-warn:unusedPrivate"/> </ajc-test> + <ajc-test dir="bugs150" pr="59397" title="synthetic arguments on itd cons are not used in matching"> + <compile files="pr59397.aj"> + <message line="6" kind="warning" text="should match"/> + </compile> + </ajc-test> + <!-- ============================================================================ --> <!-- ============================================================================ --> |