From 63b41bcc254ccca230d910396ebc36ec6ab7845b Mon Sep 17 00:00:00 2001 From: aclement Date: Wed, 27 Apr 2011 20:54:05 +0000 Subject: [PATCH] 344005: fix. Tests are in here but unfinished. --- tests/bugs1612/pr344005/Anno.java | 4 ++++ tests/bugs1612/pr344005/Azpect.java | 12 ++++++++++++ tests/bugs1612/pr344005/Types.java | 12 ++++++++++++ .../org/aspectj/systemtest/ajc1612/Ajc1612Tests.java | 4 ++++ tests/src/org/aspectj/systemtest/ajc1612/ajc1612.xml | 6 ++++++ 5 files changed, 38 insertions(+) create mode 100644 tests/bugs1612/pr344005/Anno.java create mode 100644 tests/bugs1612/pr344005/Azpect.java create mode 100644 tests/bugs1612/pr344005/Types.java diff --git a/tests/bugs1612/pr344005/Anno.java b/tests/bugs1612/pr344005/Anno.java new file mode 100644 index 000000000..148fd7c4c --- /dev/null +++ b/tests/bugs1612/pr344005/Anno.java @@ -0,0 +1,4 @@ +import java.lang.annotation.*; + +@Retention(RetentionPolicy.RUNTIME) +@interface Anno {} diff --git a/tests/bugs1612/pr344005/Azpect.java b/tests/bugs1612/pr344005/Azpect.java new file mode 100644 index 000000000..55bb73c03 --- /dev/null +++ b/tests/bugs1612/pr344005/Azpect.java @@ -0,0 +1,12 @@ +interface Marker { + +void doit(String s); +} + +aspect Azpect { + declare parents: (@Anno *) implements Marker; + + public void Marker.doit(String t) {} + + before(Marker m): execution(void m()) && this(m) {} +} diff --git a/tests/bugs1612/pr344005/Types.java b/tests/bugs1612/pr344005/Types.java new file mode 100644 index 000000000..7a1399970 --- /dev/null +++ b/tests/bugs1612/pr344005/Types.java @@ -0,0 +1,12 @@ +public class Types { +} + +//@Anno +//class X { +// public void m() {} +//} + +@Anno +class Y { + public void m() {} +} diff --git a/tests/src/org/aspectj/systemtest/ajc1612/Ajc1612Tests.java b/tests/src/org/aspectj/systemtest/ajc1612/Ajc1612Tests.java index b73590c22..0855ec495 100644 --- a/tests/src/org/aspectj/systemtest/ajc1612/Ajc1612Tests.java +++ b/tests/src/org/aspectj/systemtest/ajc1612/Ajc1612Tests.java @@ -21,6 +21,10 @@ import org.aspectj.testing.XMLBasedAjcTestCase; */ public class Ajc1612Tests extends org.aspectj.testing.XMLBasedAjcTestCase { +// public void testDecpGenerics_344005() { +// runTest("decp generics"); +// } + public void testIllegalAccessError_343051() { runTest("illegalaccesserror"); } diff --git a/tests/src/org/aspectj/systemtest/ajc1612/ajc1612.xml b/tests/src/org/aspectj/systemtest/ajc1612/ajc1612.xml index 8d7e710f5..1707b4dcd 100644 --- a/tests/src/org/aspectj/systemtest/ajc1612/ajc1612.xml +++ b/tests/src/org/aspectj/systemtest/ajc1612/ajc1612.xml @@ -2,6 +2,12 @@ + + + + + + -- 2.39.5