From 2864c7f2d744661b2ffc528c1180ad0596a07483 Mon Sep 17 00:00:00 2001 From: Eugene Burmako Date: Tue, 23 Jul 2013 17:52:56 +0200 Subject: brings JavaMirrors up to speed with ClassfileParser Apparently there are still discrepancies between how the vanilla compiler turns class files into symbols and how the reflective compiler does it. Working on bringing these guys in sync, one bug at a time. --- test/files/run/t7510/Ann_1.java | 4 ++++ test/files/run/t7510/Test_2.scala | 9 +++++++++ 2 files changed, 13 insertions(+) create mode 100644 test/files/run/t7510/Ann_1.java create mode 100644 test/files/run/t7510/Test_2.scala (limited to 'test/files/run/t7510') diff --git a/test/files/run/t7510/Ann_1.java b/test/files/run/t7510/Ann_1.java new file mode 100644 index 0000000000..c8c5b2035f --- /dev/null +++ b/test/files/run/t7510/Ann_1.java @@ -0,0 +1,4 @@ +package foo; + +public @interface Ann_1 { +} \ No newline at end of file diff --git a/test/files/run/t7510/Test_2.scala b/test/files/run/t7510/Test_2.scala new file mode 100644 index 0000000000..7d7a95e0f2 --- /dev/null +++ b/test/files/run/t7510/Test_2.scala @@ -0,0 +1,9 @@ +import scala.reflect.runtime.universe._ +import scala.reflect.runtime.{currentMirror => cm} +import scala.tools.reflect.ToolBox + +object Test extends App { + val tb = cm.mkToolBox() + tb.compile(tb.parse("@foo.Ann_1 class C")) +} + -- cgit v1.2.3