From 0c44c16b6cd65aeca12a3627a8a0f22416c1801f Mon Sep 17 00:00:00 2001 From: acolyer Date: Thu, 1 Sep 2005 12:39:40 +0000 Subject: tests for pr59397, synthetic ITC arg confusing matching --- tests/bugs150/pr59397.aj | 6 ++++++ tests/src/org/aspectj/systemtest/ajc120/ajc120-tests.xml | 1 - tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java | 4 ++++ tests/src/org/aspectj/systemtest/ajc150/ajc150.xml | 6 ++++++ 4 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 tests/bugs150/pr59397.aj (limited to 'tests') 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"> - 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 @@ + + + + + + -- cgit v1.2.3