summaryrefslogtreecommitdiff
path: root/src/library/scala/runtime/java8/JFunction2$mcIDJ$sp.java
diff options
context:
space:
mode:
authorJason Zaugg <jzaugg@gmail.com>2016-07-22 14:19:19 +1000
committerJason Zaugg <jzaugg@gmail.com>2016-07-22 14:27:25 +1000
commite4a978d06b410700b2ee85696b9ad6f6aa7ff183 (patch)
tree65e9d3d203b08f3b2ef36d002fbf72743fceb732 /src/library/scala/runtime/java8/JFunction2$mcIDJ$sp.java
parent6b99dfe746cbb76828db495b58e55db2a0265ee2 (diff)
downloadscala-e4a978d06b410700b2ee85696b9ad6f6aa7ff183.tar.gz
scala-e4a978d06b410700b2ee85696b9ad6f6aa7ff183.tar.bz2
scala-e4a978d06b410700b2ee85696b9ad6f6aa7ff183.zip
SD-121 Remove now-unneeded J{Function,Proc}N functional interfaces
Non specialized functions can directly use `scala.FunctionN` as the functional interface, now that mixin generates default methods in the new trait encoding. Unfortunately we can't do this for specialized functions as things stand: specialization leaves the wrong method abstract. In principle, we could/should amend the specialization transform to fix this. But my earlier attempts at this weren't sucessful, so for now we have to stick with the fallback plan of keeping some hand rolled functional interfaces around. This commit reduces the surface area of `scala.runtime.java8` to the minimal requiremnt: one functional interface for each specialized variant of `Function{0,1,2}`.
Diffstat (limited to 'src/library/scala/runtime/java8/JFunction2$mcIDJ$sp.java')
-rw-r--r--src/library/scala/runtime/java8/JFunction2$mcIDJ$sp.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library/scala/runtime/java8/JFunction2$mcIDJ$sp.java b/src/library/scala/runtime/java8/JFunction2$mcIDJ$sp.java
index 35c943e324..3231aa7a88 100644
--- a/src/library/scala/runtime/java8/JFunction2$mcIDJ$sp.java
+++ b/src/library/scala/runtime/java8/JFunction2$mcIDJ$sp.java
@@ -6,7 +6,7 @@
package scala.runtime.java8;
@FunctionalInterface
-public interface JFunction2$mcIDJ$sp extends JFunction2 {
+public interface JFunction2$mcIDJ$sp extends scala.Function2, java.io.Serializable {
int apply$mcIDJ$sp(double v1, long v2);
default Object apply(Object v1, Object v2) { return scala.runtime.BoxesRunTime.boxToInteger(apply$mcIDJ$sp(scala.runtime.BoxesRunTime.unboxToDouble(v1), scala.runtime.BoxesRunTime.unboxToLong(v2))); }