From 81535ce5b9acadb79dc12a662519a90e3ad319d8 Mon Sep 17 00:00:00 2001 From: Eugene Burmako Date: Wed, 11 Jul 2012 16:18:47 +0200 Subject: SI-5947 works around getDeclaredClasses Our name mangling scheme w.r.t stuff nested into objects conflicts with JVM's ideas of beauty, which messes up getDeclaredClasses. Scala reflection needs getDeclaredClasses to convert between Scala and Java, so the situation looked grim. Greg suggested a workaround described in: https://issues.scala-lang.org/browse/SI-4023?focusedCommentId=54759#comment-54759. Luckily the workaround worked! --- test/files/run/reflection-enclosed-basic.check | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 test/files/run/reflection-enclosed-basic.check (limited to 'test/files/run/reflection-enclosed-basic.check') diff --git a/test/files/run/reflection-enclosed-basic.check b/test/files/run/reflection-enclosed-basic.check new file mode 100644 index 0000000000..41f6a72f1c --- /dev/null +++ b/test/files/run/reflection-enclosed-basic.check @@ -0,0 +1,18 @@ +class B1 +B1 +1 +class B2 +B2 +2 +object B3 +B3 +3 +object B4 +B4 +4 +object B5 +B5 +5 +object B6 +B6 +6 -- cgit v1.2.3