summaryrefslogtreecommitdiff
path: root/test/files/pos/t7014/ThreadSafety.java
diff options
context:
space:
mode:
authorAdriaan Moors <adriaan.moors@typesafe.com>2013-06-15 12:20:45 -0400
committerAdriaan Moors <adriaan.moors@typesafe.com>2013-08-13 15:16:14 -0700
commitf91242c6959471b6c463538be8876a2cba29f3d3 (patch)
treeb3e1de08923873688436440809773059dbaad4c0 /test/files/pos/t7014/ThreadSafety.java
parente0d487d63144f2422d0be3bd8ac77e6f842e55ab (diff)
downloadscala-f91242c6959471b6c463538be8876a2cba29f3d3.tar.gz
scala-f91242c6959471b6c463538be8876a2cba29f3d3.tar.bz2
scala-f91242c6959471b6c463538be8876a2cba29f3d3.zip
SI-7014 Annot arg may refer to annotated class's member
This only reduces the crasher to a warning.
Diffstat (limited to 'test/files/pos/t7014/ThreadSafety.java')
-rw-r--r--test/files/pos/t7014/ThreadSafety.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/files/pos/t7014/ThreadSafety.java b/test/files/pos/t7014/ThreadSafety.java
new file mode 100644
index 0000000000..ed508804e3
--- /dev/null
+++ b/test/files/pos/t7014/ThreadSafety.java
@@ -0,0 +1,9 @@
+package t7014;
+
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+
+@Retention(RetentionPolicy.RUNTIME) // must be exactly RUNTIME retention (those we parse)
+public @interface ThreadSafety {
+ ThreadSafetyLevel level();
+} \ No newline at end of file