From 25cac9205ccc64b5c175d72a555b5c1f0389c09d Mon Sep 17 00:00:00 2001 From: aclement Date: Thu, 28 Apr 2011 00:04:31 +0000 Subject: [PATCH] 335810 --- tests/bugs1612/pr335810/One.class | Bin 0 -> 829 bytes tests/bugs1612/pr335810/One.java | 16 ++++++++++++++++ .../systemtest/ajc1612/Ajc1612Tests.java | 4 ++++ .../org/aspectj/systemtest/ajc1612/ajc1612.xml | 5 +++++ 4 files changed, 25 insertions(+) create mode 100644 tests/bugs1612/pr335810/One.class create mode 100644 tests/bugs1612/pr335810/One.java diff --git a/tests/bugs1612/pr335810/One.class b/tests/bugs1612/pr335810/One.class new file mode 100644 index 0000000000000000000000000000000000000000..a49a21ab2bff6ea7ed35be18aff0a829441ed8ab GIT binary patch literal 829 zcmZ8f%We}v5Ug20)?S$&Yaf^M3PyK+7w`K0?v$qSWrkCZ)6&)%w0A~R`qYW{H& zDxvN&l0YzhCD0t`v5_{%YV-q)VJH)M};RlyzzI8@_UQT1SF~Sz!#&4P@j_R9rp1aCG%3w>Z5P#7Oc5S=rhtMU Z(+jZ6szQ&;J)wpo_msE5GiC#H{s6}apECde literal 0 HcmV?d00001 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 @@ + + + + + -- 2.39.5