From d4f8dc660a9b17b30b7c6b909b5a15d028ce7c37 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Tue, 21 Jun 2011 11:46:17 +0000 Subject: Added test case. --- test/pending/run/t4713/JavaAnnots.java | 14 ++++++++++++++ test/pending/run/t4713/Problem.scala | 5 +++++ 2 files changed, 19 insertions(+) create mode 100644 test/pending/run/t4713/JavaAnnots.java create mode 100644 test/pending/run/t4713/Problem.scala (limited to 'test/pending') diff --git a/test/pending/run/t4713/JavaAnnots.java b/test/pending/run/t4713/JavaAnnots.java new file mode 100644 index 0000000000..29541b1ee0 --- /dev/null +++ b/test/pending/run/t4713/JavaAnnots.java @@ -0,0 +1,14 @@ +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; +import java.util.List; + +public abstract class JavaAnnots { + @Retention(RetentionPolicy.RUNTIME) + @Target(ElementType.FIELD) + public @interface Book { + } + + public static final List Book = null; +} \ No newline at end of file diff --git a/test/pending/run/t4713/Problem.scala b/test/pending/run/t4713/Problem.scala new file mode 100644 index 0000000000..e87f657d2e --- /dev/null +++ b/test/pending/run/t4713/Problem.scala @@ -0,0 +1,5 @@ +object Problem { + def d() { + val v: java.util.List[String] = JavaAnnots.Book + } +} -- cgit v1.2.3