Skip to content

Commit 252d30f

Browse files
nicolasstuckiliufengyun
authored andcommitted
1 parent bbef119 commit 252d30f

10 files changed

+168
-0
lines changed

project/Build.scala

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -864,6 +864,9 @@ object Build {
864864
} (Set(scalaLibrarySourcesJar)).toSeq
865865
}.taskValue,
866866
sources in Compile ~= (_.filterNot(file =>
867+
// Ported filles from https://github.com/scala/scala/pull/9307
868+
// TODO: Remove this and `stdlib-bootstrapped/src` files when the library is updated above 2.13.3
869+
file.getPath.contains("scala-library-src/scala/runtime/java8/JFunction0$mc") ||
867870
// sources from https://github.com/scala/scala/tree/2.13.x/src/library-aux
868871
file.getPath.endsWith("scala-library-src/scala/Any.scala") ||
869872
file.getPath.endsWith("scala-library-src/scala/AnyVal.scala") ||
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/*
2+
* Scala (https://www.scala-lang.org)
3+
*
4+
* Copyright EPFL and Lightbend, Inc.
5+
*
6+
* Licensed under Apache License 2.0
7+
* (http://www.apache.org/licenses/LICENSE-2.0).
8+
*
9+
* See the NOTICE file distributed with this work for
10+
* additional information regarding copyright ownership.
11+
*/
12+
13+
package scala.runtime.java8
14+
15+
@FunctionalInterface trait JFunction0$mcB$sp extends Function0[Any] with Serializable {
16+
def apply$mcB$sp(): Byte
17+
override def apply(): Any = scala.runtime.BoxesRunTime.boxToByte(apply$mcB$sp())
18+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/*
2+
* Scala (https://www.scala-lang.org)
3+
*
4+
* Copyright EPFL and Lightbend, Inc.
5+
*
6+
* Licensed under Apache License 2.0
7+
* (http://www.apache.org/licenses/LICENSE-2.0).
8+
*
9+
* See the NOTICE file distributed with this work for
10+
* additional information regarding copyright ownership.
11+
*/
12+
13+
package scala.runtime.java8
14+
15+
@FunctionalInterface trait JFunction0$mcC$sp extends Function0[Any] with Serializable {
16+
def apply$mcC$sp(): Char
17+
override def apply(): Any = scala.runtime.BoxesRunTime.boxToCharacter(apply$mcC$sp())
18+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/*
2+
* Scala (https://www.scala-lang.org)
3+
*
4+
* Copyright EPFL and Lightbend, Inc.
5+
*
6+
* Licensed under Apache License 2.0
7+
* (http://www.apache.org/licenses/LICENSE-2.0).
8+
*
9+
* See the NOTICE file distributed with this work for
10+
* additional information regarding copyright ownership.
11+
*/
12+
13+
package scala.runtime.java8
14+
15+
@FunctionalInterface trait JFunction0$mcD$sp extends Function0[Any] with Serializable {
16+
def apply$mcD$sp(): Double
17+
override def apply(): Any = scala.runtime.BoxesRunTime.boxToDouble(apply$mcD$sp())
18+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/*
2+
* Scala (https://www.scala-lang.org)
3+
*
4+
* Copyright EPFL and Lightbend, Inc.
5+
*
6+
* Licensed under Apache License 2.0
7+
* (http://www.apache.org/licenses/LICENSE-2.0).
8+
*
9+
* See the NOTICE file distributed with this work for
10+
* additional information regarding copyright ownership.
11+
*/
12+
13+
package scala.runtime.java8
14+
15+
@FunctionalInterface trait JFunction0$mcF$sp extends Function0[Any] with Serializable {
16+
def apply$mcF$sp(): Float
17+
override def apply(): Any = scala.runtime.BoxesRunTime.boxToFloat(apply$mcF$sp())
18+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/*
2+
* Scala (https://www.scala-lang.org)
3+
*
4+
* Copyright EPFL and Lightbend, Inc.
5+
*
6+
* Licensed under Apache License 2.0
7+
* (http://www.apache.org/licenses/LICENSE-2.0).
8+
*
9+
* See the NOTICE file distributed with this work for
10+
* additional information regarding copyright ownership.
11+
*/
12+
13+
package scala.runtime.java8
14+
15+
@FunctionalInterface trait JFunction0$mcI$sp extends Function0[Any] with Serializable {
16+
def apply$mcI$sp(): Int
17+
override def apply(): Any = scala.runtime.BoxesRunTime.boxToInteger(apply$mcI$sp())
18+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/*
2+
* Scala (https://www.scala-lang.org)
3+
*
4+
* Copyright EPFL and Lightbend, Inc.
5+
*
6+
* Licensed under Apache License 2.0
7+
* (http://www.apache.org/licenses/LICENSE-2.0).
8+
*
9+
* See the NOTICE file distributed with this work for
10+
* additional information regarding copyright ownership.
11+
*/
12+
13+
package scala.runtime.java8
14+
15+
@FunctionalInterface trait JFunction0$mcJ$sp extends Function0[Any] with Serializable {
16+
def apply$mcJ$sp(): Long
17+
override def apply(): Any = scala.runtime.BoxesRunTime.boxToLong(apply$mcJ$sp())
18+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/*
2+
* Scala (https://www.scala-lang.org)
3+
*
4+
* Copyright EPFL and Lightbend, Inc.
5+
*
6+
* Licensed under Apache License 2.0
7+
* (http://www.apache.org/licenses/LICENSE-2.0).
8+
*
9+
* See the NOTICE file distributed with this work for
10+
* additional information regarding copyright ownership.
11+
*/
12+
13+
package scala.runtime.java8
14+
15+
@FunctionalInterface trait JFunction0$mcS$sp extends Function0[Any] with Serializable {
16+
def apply$mcS$sp(): Short
17+
override def apply(): Any = scala.runtime.BoxesRunTime.boxToShort(apply$mcS$sp())
18+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/*
2+
* Scala (https://www.scala-lang.org)
3+
*
4+
* Copyright EPFL and Lightbend, Inc.
5+
*
6+
* Licensed under Apache License 2.0
7+
* (http://www.apache.org/licenses/LICENSE-2.0).
8+
*
9+
* See the NOTICE file distributed with this work for
10+
* additional information regarding copyright ownership.
11+
*/
12+
13+
package scala.runtime.java8
14+
15+
@FunctionalInterface trait JFunction0$mcV$sp extends Function0[Any] with Serializable {
16+
def apply$mcV$sp(): Unit
17+
override def apply(): Any = {
18+
apply$mcV$sp()
19+
scala.runtime.BoxedUnit.UNIT
20+
}
21+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/*
2+
* Scala (https://www.scala-lang.org)
3+
*
4+
* Copyright EPFL and Lightbend, Inc.
5+
*
6+
* Licensed under Apache License 2.0
7+
* (http://www.apache.org/licenses/LICENSE-2.0).
8+
*
9+
* See the NOTICE file distributed with this work for
10+
* additional information regarding copyright ownership.
11+
*/
12+
13+
package scala.runtime.java8
14+
15+
@FunctionalInterface trait JFunction0$mcZ$sp extends Function0[Any] with Serializable {
16+
def apply$mcZ$sp(): Boolean
17+
override def apply(): Any = scala.runtime.BoxesRunTime.boxToBoolean(apply$mcZ$sp())
18+
}

0 commit comments

Comments
 (0)