Skip to content

Rename scala.compat.java8.* -> dotty.runtime.function.* #5912

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 13, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1178,8 +1178,8 @@ class DottyBackendInterface(outputDirectory: AbstractFile, val superCallsMap: Ma
val arity = field.meth.tpe.widenDealias.paramTypes.size - _1.size
val returnsUnit = field.meth.tpe.widenDealias.resultType.classSymbol == UnitClass
if (returnsUnit)
ctx.requiredClass(("scala.compat.java8.JProcedure" + arity))
else ctx.requiredClass(("scala.compat.java8.JFunction" + arity))
ctx.requiredClass(("dotty.runtime.function.JProcedure" + arity))
else ctx.requiredClass(("dotty.runtime.function.JFunction" + arity))
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class FunctionalInterfaces extends MiniPhase {
def phaseName: String = FunctionalInterfaces.name

private[this] val functionName = "JFunction".toTermName
private[this] val functionPackage = "scala.compat.java8.".toTermName
private[this] val functionPackage = "dotty.runtime.function.".toTermName

override def transformClosure(tree: Closure)(implicit ctx: Context): Tree = {
val cls = tree.tpe.widen.classSymbol.asClass
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (C) 2012-2014 Typesafe Inc. <http://www.typesafe.com>
*/

package scala.compat.java8;
package dotty.runtime.function;

import scala.runtime.BoxedUnit;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (C) 2012-2014 Typesafe Inc. <http://www.typesafe.com>
*/

package scala.compat.java8;
package dotty.runtime.function;

@FunctionalInterface
public interface JFunction0$mcB$sp extends JFunction0 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (C) 2012-2014 Typesafe Inc. <http://www.typesafe.com>
*/

package scala.compat.java8;
package dotty.runtime.function;

@FunctionalInterface
public interface JFunction0$mcC$sp extends JFunction0 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (C) 2012-2014 Typesafe Inc. <http://www.typesafe.com>
*/

package scala.compat.java8;
package dotty.runtime.function;

@FunctionalInterface
public interface JFunction0$mcD$sp extends JFunction0 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (C) 2012-2014 Typesafe Inc. <http://www.typesafe.com>
*/

package scala.compat.java8;
package dotty.runtime.function;

@FunctionalInterface
public interface JFunction0$mcF$sp extends JFunction0 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (C) 2012-2014 Typesafe Inc. <http://www.typesafe.com>
*/

package scala.compat.java8;
package dotty.runtime.function;

@FunctionalInterface
public interface JFunction0$mcI$sp extends JFunction0 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (C) 2012-2014 Typesafe Inc. <http://www.typesafe.com>
*/

package scala.compat.java8;
package dotty.runtime.function;

@FunctionalInterface
public interface JFunction0$mcJ$sp extends JFunction0 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (C) 2012-2014 Typesafe Inc. <http://www.typesafe.com>
*/

package scala.compat.java8;
package dotty.runtime.function;

@FunctionalInterface
public interface JFunction0$mcS$sp extends JFunction0 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (C) 2012-2014 Typesafe Inc. <http://www.typesafe.com>
*/

package scala.compat.java8;
package dotty.runtime.function;

@FunctionalInterface
public interface JFunction0$mcV$sp extends JFunction0 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (C) 2012-2014 Typesafe Inc. <http://www.typesafe.com>
*/

package scala.compat.java8;
package dotty.runtime.function;

@FunctionalInterface
public interface JFunction0$mcZ$sp extends JFunction0 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (C) 2012-2014 Typesafe Inc. <http://www.typesafe.com>
*/

package scala.compat.java8;
package dotty.runtime.function;

@FunctionalInterface
public interface JFunction0<R> extends scala.Function0<R>, java.io.Serializable {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (C) 2012-2014 Typesafe Inc. <http://www.typesafe.com>
*/

package scala.compat.java8;
package dotty.runtime.function;

@FunctionalInterface
public interface JFunction1$mcDD$sp extends JFunction1 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (C) 2012-2014 Typesafe Inc. <http://www.typesafe.com>
*/

package scala.compat.java8;
package dotty.runtime.function;

@FunctionalInterface
public interface JFunction1$mcDF$sp extends JFunction1 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (C) 2012-2014 Typesafe Inc. <http://www.typesafe.com>
*/

package scala.compat.java8;
package dotty.runtime.function;

@FunctionalInterface
public interface JFunction1$mcDI$sp extends JFunction1 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (C) 2012-2014 Typesafe Inc. <http://www.typesafe.com>
*/

package scala.compat.java8;
package dotty.runtime.function;

@FunctionalInterface
public interface JFunction1$mcDJ$sp extends JFunction1 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (C) 2012-2014 Typesafe Inc. <http://www.typesafe.com>
*/

package scala.compat.java8;
package dotty.runtime.function;

@FunctionalInterface
public interface JFunction1$mcFD$sp extends JFunction1 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (C) 2012-2014 Typesafe Inc. <http://www.typesafe.com>
*/

package scala.compat.java8;
package dotty.runtime.function;

@FunctionalInterface
public interface JFunction1$mcFF$sp extends JFunction1 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (C) 2012-2014 Typesafe Inc. <http://www.typesafe.com>
*/

package scala.compat.java8;
package dotty.runtime.function;

@FunctionalInterface
public interface JFunction1$mcFI$sp extends JFunction1 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (C) 2012-2014 Typesafe Inc. <http://www.typesafe.com>
*/

package scala.compat.java8;
package dotty.runtime.function;

@FunctionalInterface
public interface JFunction1$mcFJ$sp extends JFunction1 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (C) 2012-2014 Typesafe Inc. <http://www.typesafe.com>
*/

package scala.compat.java8;
package dotty.runtime.function;

@FunctionalInterface
public interface JFunction1$mcID$sp extends JFunction1 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (C) 2012-2014 Typesafe Inc. <http://www.typesafe.com>
*/

package scala.compat.java8;
package dotty.runtime.function;

@FunctionalInterface
public interface JFunction1$mcIF$sp extends JFunction1 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (C) 2012-2014 Typesafe Inc. <http://www.typesafe.com>
*/

package scala.compat.java8;
package dotty.runtime.function;

@FunctionalInterface
public interface JFunction1$mcII$sp extends JFunction1 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (C) 2012-2014 Typesafe Inc. <http://www.typesafe.com>
*/

package scala.compat.java8;
package dotty.runtime.function;

@FunctionalInterface
public interface JFunction1$mcIJ$sp extends JFunction1 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (C) 2012-2014 Typesafe Inc. <http://www.typesafe.com>
*/

package scala.compat.java8;
package dotty.runtime.function;

@FunctionalInterface
public interface JFunction1$mcJD$sp extends JFunction1 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (C) 2012-2014 Typesafe Inc. <http://www.typesafe.com>
*/

package scala.compat.java8;
package dotty.runtime.function;

@FunctionalInterface
public interface JFunction1$mcJF$sp extends JFunction1 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (C) 2012-2014 Typesafe Inc. <http://www.typesafe.com>
*/

package scala.compat.java8;
package dotty.runtime.function;

@FunctionalInterface
public interface JFunction1$mcJI$sp extends JFunction1 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (C) 2012-2014 Typesafe Inc. <http://www.typesafe.com>
*/

package scala.compat.java8;
package dotty.runtime.function;

@FunctionalInterface
public interface JFunction1$mcJJ$sp extends JFunction1 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (C) 2012-2014 Typesafe Inc. <http://www.typesafe.com>
*/

package scala.compat.java8;
package dotty.runtime.function;

@FunctionalInterface
public interface JFunction1$mcVD$sp extends JFunction1 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (C) 2012-2014 Typesafe Inc. <http://www.typesafe.com>
*/

package scala.compat.java8;
package dotty.runtime.function;

@FunctionalInterface
public interface JFunction1$mcVF$sp extends JFunction1 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (C) 2012-2014 Typesafe Inc. <http://www.typesafe.com>
*/

package scala.compat.java8;
package dotty.runtime.function;

@FunctionalInterface
public interface JFunction1$mcVI$sp extends JFunction1 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (C) 2012-2014 Typesafe Inc. <http://www.typesafe.com>
*/

package scala.compat.java8;
package dotty.runtime.function;

@FunctionalInterface
public interface JFunction1$mcVJ$sp extends JFunction1 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (C) 2012-2014 Typesafe Inc. <http://www.typesafe.com>
*/

package scala.compat.java8;
package dotty.runtime.function;

@FunctionalInterface
public interface JFunction1$mcZD$sp extends JFunction1 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (C) 2012-2014 Typesafe Inc. <http://www.typesafe.com>
*/

package scala.compat.java8;
package dotty.runtime.function;

@FunctionalInterface
public interface JFunction1$mcZF$sp extends JFunction1 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (C) 2012-2014 Typesafe Inc. <http://www.typesafe.com>
*/

package scala.compat.java8;
package dotty.runtime.function;

@FunctionalInterface
public interface JFunction1$mcZI$sp extends JFunction1 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (C) 2012-2014 Typesafe Inc. <http://www.typesafe.com>
*/

package scala.compat.java8;
package dotty.runtime.function;

@FunctionalInterface
public interface JFunction1$mcZJ$sp extends JFunction1 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (C) 2012-2014 Typesafe Inc. <http://www.typesafe.com>
*/

package scala.compat.java8;
package dotty.runtime.function;

@FunctionalInterface
public interface JFunction1<T1, R> extends scala.Function1<T1, R>, java.io.Serializable {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (C) 2012-2014 Typesafe Inc. <http://www.typesafe.com>
*/

package scala.compat.java8;
package dotty.runtime.function;

@FunctionalInterface
public interface JFunction10<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, R> extends scala.Function10<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, R>, java.io.Serializable {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (C) 2012-2014 Typesafe Inc. <http://www.typesafe.com>
*/

package scala.compat.java8;
package dotty.runtime.function;

@FunctionalInterface
public interface JFunction11<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, R> extends scala.Function11<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, R>, java.io.Serializable {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (C) 2012-2014 Typesafe Inc. <http://www.typesafe.com>
*/

package scala.compat.java8;
package dotty.runtime.function;

@FunctionalInterface
public interface JFunction12<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, R> extends scala.Function12<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, R>, java.io.Serializable {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (C) 2012-2014 Typesafe Inc. <http://www.typesafe.com>
*/

package scala.compat.java8;
package dotty.runtime.function;

@FunctionalInterface
public interface JFunction13<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, R> extends scala.Function13<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, R>, java.io.Serializable {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (C) 2012-2014 Typesafe Inc. <http://www.typesafe.com>
*/

package scala.compat.java8;
package dotty.runtime.function;

@FunctionalInterface
public interface JFunction14<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, R> extends scala.Function14<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, R>, java.io.Serializable {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (C) 2012-2014 Typesafe Inc. <http://www.typesafe.com>
*/

package scala.compat.java8;
package dotty.runtime.function;

@FunctionalInterface
public interface JFunction15<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, R> extends scala.Function15<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, R>, java.io.Serializable {
Expand Down
Loading