From: aclement Date: Thu, 28 Apr 2011 00:04:31 +0000 (+0000) Subject: 335810 X-Git-Tag: V1_6_12M1~61 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=25cac9205ccc64b5c175d72a555b5c1f0389c09d;p=aspectj.git 335810 --- diff --git a/tests/bugs1612/pr335810/One.class b/tests/bugs1612/pr335810/One.class new file mode 100644 index 000000000..a49a21ab2 Binary files /dev/null and b/tests/bugs1612/pr335810/One.class differ diff --git a/tests/bugs1612/pr335810/One.java b/tests/bugs1612/pr335810/One.java new file mode 100644 index 000000000..e09e390cc --- /dev/null +++ b/tests/bugs1612/pr335810/One.java @@ -0,0 +1,16 @@ +import java.util.List; + +public class One { + + @SuppressWarnings("rawtypes") + public void m(List l) { + + } + + @SuppressWarnings("unchecked") + public void m2(List input) { + List ls = (List)input; + System.out.println(ls); + } +} + diff --git a/tests/src/org/aspectj/systemtest/ajc1612/Ajc1612Tests.java b/tests/src/org/aspectj/systemtest/ajc1612/Ajc1612Tests.java index 0855ec495..51b4cf5e1 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 testRawTypeWarning_335810() { + runTest("rawtype warning"); + } + // public void testDecpGenerics_344005() { // runTest("decp generics"); // } diff --git a/tests/src/org/aspectj/systemtest/ajc1612/ajc1612.xml b/tests/src/org/aspectj/systemtest/ajc1612/ajc1612.xml index 1707b4dcd..18b986645 100644 --- a/tests/src/org/aspectj/systemtest/ajc1612/ajc1612.xml +++ b/tests/src/org/aspectj/systemtest/ajc1612/ajc1612.xml @@ -2,6 +2,11 @@ + + + + +