From 5490385303a5f5bfa90071ca650f3e0c1c4e81ed Mon Sep 17 00:00:00 2001 From: Adrien Piquerez Date: Thu, 29 Apr 2021 14:06:00 +0200 Subject: [PATCH] Remove topLoader hack for dotty --- main/src/main/scala/sbt/Main.scala | 3 --- 1 file changed, 3 deletions(-) diff --git a/main/src/main/scala/sbt/Main.scala b/main/src/main/scala/sbt/Main.scala index 45ff32133..f9771b134 100644 --- a/main/src/main/scala/sbt/Main.scala +++ b/main/src/main/scala/sbt/Main.scala @@ -974,9 +974,6 @@ object BuiltinCommands { st => setupGlobalFileTreeRepository(addCacheStoreFactoryFactory(st)) ) val s4 = s3.put(Keys.useLog4J.key, Project.extract(s3).get(Keys.useLog4J)) - // This is a workaround for the console task in dotty which uses the classloader cache. - // We need to override the top loader in that case so that it gets the forked jline. - s4.extendedClassLoaderCache.setParent(Project.extract(s4).get(Keys.scalaInstanceTopLoader)) addSuperShellParams(CheckBuildSources.init(LintUnused.lintUnusedFunc(s4))) }