From 770d6e9b62adc97137f26ebf8696cfdd4ad2920b Mon Sep 17 00:00:00 2001 From: Jason Zaugg Date: Wed, 27 Apr 2016 11:54:19 +1000 Subject: SD-129 Mark JFunctionN as serializable Before this change, if these were used as the target type of a lambda in Java source code, the lambda would not be serializable. This is somewhat suprising when contrasted with the way that Scala lambdas work in Scala source. Since we copied these classes over from scala-java8-compat, that project has opted to add Serializable as a parent to solve this issue. This commit brings our copy of these interfaces into line with that change. --- src/library/scala/runtime/java8/JFunction19.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/library/scala/runtime/java8/JFunction19.java') diff --git a/src/library/scala/runtime/java8/JFunction19.java b/src/library/scala/runtime/java8/JFunction19.java index bbfceac8c3..dde4824293 100644 --- a/src/library/scala/runtime/java8/JFunction19.java +++ b/src/library/scala/runtime/java8/JFunction19.java @@ -6,5 +6,5 @@ package scala.runtime.java8; @FunctionalInterface -public interface JFunction19 extends scala.Function19 { +public interface JFunction19 extends scala.Function19, java.io.Serializable { } -- cgit v1.2.3