diff options
author | Adriaan Moors <adriaan.moors@typesafe.com> | 2013-06-15 12:20:45 -0400 |
---|---|---|
committer | Adriaan Moors <adriaan.moors@typesafe.com> | 2013-08-13 15:16:14 -0700 |
commit | f91242c6959471b6c463538be8876a2cba29f3d3 (patch) | |
tree | b3e1de08923873688436440809773059dbaad4c0 /test/files/pos/t7014/ThreadSafetyLevel.java | |
parent | e0d487d63144f2422d0be3bd8ac77e6f842e55ab (diff) | |
download | scala-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/ThreadSafetyLevel.java')
-rw-r--r-- | test/files/pos/t7014/ThreadSafetyLevel.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/files/pos/t7014/ThreadSafetyLevel.java b/test/files/pos/t7014/ThreadSafetyLevel.java new file mode 100644 index 0000000000..4df1dc787a --- /dev/null +++ b/test/files/pos/t7014/ThreadSafetyLevel.java @@ -0,0 +1,8 @@ +package t7014; // package needed due to other bug in scalac's java parser + +// since we parse eagerly, we have not yet parsed the classfile when parsing the annotation, +// and on doing so, fail to find a symbol for the COMPLETELY_THREADSAFE reference +// from the annotation's argument to the enum's member +// for now, let's just not crash -- should implement lazy completing at some point +@ThreadSafety(level=ThreadSafetyLevel.COMPLETELY_THREADSAFE) +public enum ThreadSafetyLevel { COMPLETELY_THREADSAFE } |