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/JFunction10.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/library/scala/runtime/java8/JFunction10.java') diff --git a/src/library/scala/runtime/java8/JFunction10.java b/src/library/scala/runtime/java8/JFunction10.java index 9b9ab4a6c5..f7a25c0df2 100644 --- a/src/library/scala/runtime/java8/JFunction10.java +++ b/src/library/scala/runtime/java8/JFunction10.java @@ -6,5 +6,5 @@ package scala.runtime.java8; @FunctionalInterface -public interface JFunction10 extends scala.Function10 { +public interface JFunction10 extends scala.Function10, java.io.Serializable { } -- cgit v1.2.3