diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2016-07-22 14:19:19 +1000 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2016-07-22 14:27:25 +1000 |
commit | e4a978d06b410700b2ee85696b9ad6f6aa7ff183 (patch) | |
tree | 65e9d3d203b08f3b2ef36d002fbf72743fceb732 /src/library/scala/runtime/java8/JFunction2$mcFII$sp.java | |
parent | 6b99dfe746cbb76828db495b58e55db2a0265ee2 (diff) | |
download | scala-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$mcFII$sp.java')
-rw-r--r-- | src/library/scala/runtime/java8/JFunction2$mcFII$sp.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library/scala/runtime/java8/JFunction2$mcFII$sp.java b/src/library/scala/runtime/java8/JFunction2$mcFII$sp.java index a9a4540ca3..d58284b752 100644 --- a/src/library/scala/runtime/java8/JFunction2$mcFII$sp.java +++ b/src/library/scala/runtime/java8/JFunction2$mcFII$sp.java @@ -6,7 +6,7 @@ package scala.runtime.java8; @FunctionalInterface -public interface JFunction2$mcFII$sp extends JFunction2 { +public interface JFunction2$mcFII$sp extends scala.Function2, java.io.Serializable { float apply$mcFII$sp(int v1, int v2); default Object apply(Object v1, Object v2) { return scala.runtime.BoxesRunTime.boxToFloat(apply$mcFII$sp(scala.runtime.BoxesRunTime.unboxToInt(v1), scala.runtime.BoxesRunTime.unboxToInt(v2))); } |