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/JFunction0$mcS$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/JFunction0$mcS$sp.java')
-rw-r--r-- | src/library/scala/runtime/java8/JFunction0$mcS$sp.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library/scala/runtime/java8/JFunction0$mcS$sp.java b/src/library/scala/runtime/java8/JFunction0$mcS$sp.java index d9e36a39f0..5fbabb2358 100644 --- a/src/library/scala/runtime/java8/JFunction0$mcS$sp.java +++ b/src/library/scala/runtime/java8/JFunction0$mcS$sp.java @@ -6,7 +6,7 @@ package scala.runtime.java8; @FunctionalInterface -public interface JFunction0$mcS$sp extends JFunction0 { +public interface JFunction0$mcS$sp extends scala.Function0, java.io.Serializable { short apply$mcS$sp(); default Object apply() { return scala.runtime.BoxesRunTime.boxToShort(apply$mcS$sp()); } |