]> source.dussan.org Git - aspectj.git/commitdiff
335810
authoraclement <aclement>
Thu, 28 Apr 2011 00:04:31 +0000 (00:04 +0000)
committeraclement <aclement>
Thu, 28 Apr 2011 00:04:31 +0000 (00:04 +0000)
tests/bugs1612/pr335810/One.class [new file with mode: 0644]
tests/bugs1612/pr335810/One.java [new file with mode: 0644]
tests/src/org/aspectj/systemtest/ajc1612/Ajc1612Tests.java
tests/src/org/aspectj/systemtest/ajc1612/ajc1612.xml

diff --git a/tests/bugs1612/pr335810/One.class b/tests/bugs1612/pr335810/One.class
new file mode 100644 (file)
index 0000000..a49a21a
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 (file)
index 0000000..e09e390
--- /dev/null
@@ -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<String> ls = (List<String>)input;
+               System.out.println(ls);
+       }
+}
+
index 0855ec495868ca766705242164568d317dcf2705..51b4cf5e173d1d8466f04b855bc91f6f55a6196d 100644 (file)
@@ -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");
 //     }
index 1707b4dcd19747a7409fcc1fbe8adef43b632cc6..18b986645ea99dc2b4576a5c892277c2873d2521 100644 (file)
@@ -2,6 +2,11 @@
 
 <suite>
 
+<ajc-test dir="bugs1612/pr335810" title="rawtype warning">
+<compile files="One.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"/>