diff options
author | aclement <aclement> | 2011-04-28 15:36:50 +0000 |
---|---|---|
committer | aclement <aclement> | 2011-04-28 15:36:50 +0000 |
commit | 199299c195c2e24edab2990e1cb9004b2d712ac3 (patch) | |
tree | 11a78a9085361b6b1ac052775883524633758e8c /tests | |
parent | 1fdec320f16004df3427f4b0d6332f1dc377219d (diff) | |
download | aspectj-199299c195c2e24edab2990e1cb9004b2d712ac3.tar.gz aspectj-199299c195c2e24edab2990e1cb9004b2d712ac3.zip |
327134
Diffstat (limited to 'tests')
-rw-r--r-- | tests/bugs1612/pr327134/Code.java | 16 | ||||
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc1612/Ajc1612Tests.java | 4 | ||||
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc1612/ajc1612.xml | 5 |
3 files changed, 25 insertions, 0 deletions
diff --git a/tests/bugs1612/pr327134/Code.java b/tests/bugs1612/pr327134/Code.java new file mode 100644 index 000000000..588e5b12d --- /dev/null +++ b/tests/bugs1612/pr327134/Code.java @@ -0,0 +1,16 @@ +import java.util.*; +import java.io.*; + +interface IVOList<T extends IValueObject> extends List<T>, Externalizable, Serializable { + void updateList(List<T> newList); +} + +interface IValueObject extends Comparable<IValueObject>, Serializable { + +} + +aspect Foo { + @SuppressWarnings("rawtypes") + pointcut IVOListUpdate(IVOList list): target(list) && call(void updateList(*)); +} + diff --git a/tests/src/org/aspectj/systemtest/ajc1612/Ajc1612Tests.java b/tests/src/org/aspectj/systemtest/ajc1612/Ajc1612Tests.java index 51b4cf5e1..a3cb6108d 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 testRawTypePointcut_327134() { + runTest("rawtype pointcut"); + } + public void testRawTypeWarning_335810() { runTest("rawtype warning"); } diff --git a/tests/src/org/aspectj/systemtest/ajc1612/ajc1612.xml b/tests/src/org/aspectj/systemtest/ajc1612/ajc1612.xml index 18b986645..a413a1232 100644 --- a/tests/src/org/aspectj/systemtest/ajc1612/ajc1612.xml +++ b/tests/src/org/aspectj/systemtest/ajc1612/ajc1612.xml @@ -7,6 +7,11 @@ </compile> </ajc-test> +<ajc-test dir="bugs1612/pr327134" title="rawtype pointcut"> +<compile files="Code.java" options="-1.5 -warn:+raw -warn:+warningToken"> +</compile> +</ajc-test> + <ajc-test dir="bugs1612/pr344005" title="decp generics"> <compile files="Anno.java Types.java Azpect.java" options="-1.5 -showWeaveInfo"> <message kind="weave" text="XX"/> |