From 20175a01baf6dc3129f72c16f205832901098956 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Thu, 7 Apr 2016 23:48:17 +0200 Subject: Fix unpickling of Java SeqLiterals Two problems were fixed: - isJava needs to look at function symbol, not its type (references to Java methods get normal MethodTypes not JavMethodTypes) - we also need to handle the case where the repeated argument is wrspped in a type ascription. --- tests/pickling/i1202d.scala | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 tests/pickling/i1202d.scala (limited to 'tests/pickling/i1202d.scala') diff --git a/tests/pickling/i1202d.scala b/tests/pickling/i1202d.scala new file mode 100644 index 000000000..d03adf197 --- /dev/null +++ b/tests/pickling/i1202d.scala @@ -0,0 +1,4 @@ +class Fail5 { + val someClass: Class[_] = ??? + val resultMethod = someClass.getMethod("result") +} -- cgit v1.2.3