aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs150
diff options
context:
space:
mode:
authoracolyer <acolyer>2005-08-19 19:18:31 +0000
committeracolyer <acolyer>2005-08-19 19:18:31 +0000
commit7b325703558284f5dbf21c5e94b1ffc76e4e382c (patch)
treea31014b5f132374f9bcb8e577e64c95d66b50c0b /tests/bugs150
parent86ce1f7ce2a4be24e55a0eafc96de86142ce1278 (diff)
downloadaspectj-7b325703558284f5dbf21c5e94b1ffc76e4e382c.tar.gz
aspectj-7b325703558284f5dbf21c5e94b1ffc76e4e382c.zip
test for pr104529, @SuppressWarnings("unchecked") not being honored
Diffstat (limited to 'tests/bugs150')
-rw-r--r--tests/bugs150/pr104529.aj19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/bugs150/pr104529.aj b/tests/bugs150/pr104529.aj
new file mode 100644
index 000000000..ddec2dcc0
--- /dev/null
+++ b/tests/bugs150/pr104529.aj
@@ -0,0 +1,19 @@
+import java.util.*;
+public class pr104529 {
+
+ /*
+ * AJDT is ignoring the @SuppressWarnings( "unchecked" ) annotation. It is giving
+ * me a type safety warning when I don't specify the type when declaring a generic
+ * even though I have the @SuppressWarnings( "unchecked" ) annotation specified.
+ */
+
+ void unsuppressed() {
+ List<String> l = new ArrayList();
+ }
+
+ @SuppressWarnings("unchecked")
+ void suppressed() {
+ List<Double> l = new ArrayList();
+ }
+
+}