From 3e022c81e2ad03bae855c5a87461c529bf75ce10 Mon Sep 17 00:00:00 2001 From: Wojciech Mazur Date: Tue, 3 Dec 2024 12:04:05 +0100 Subject: [PATCH] Revert partially changes made in 21186 - these should not be included in the LTS becouse chnges to ExtractDependencies were not yet backported. Keep sbt tests --- compiler/src/dotty/tools/backend/jvm/CodeGen.scala | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/compiler/src/dotty/tools/backend/jvm/CodeGen.scala b/compiler/src/dotty/tools/backend/jvm/CodeGen.scala index b78b3933fb1f..5950960afa2c 100644 --- a/compiler/src/dotty/tools/backend/jvm/CodeGen.scala +++ b/compiler/src/dotty/tools/backend/jvm/CodeGen.scala @@ -135,11 +135,7 @@ class CodeGen(val int: DottyBackendInterface, val primitives: DottyPrimitives)( ctx.withIncCallback: cb => if isLocal then cb.generatedLocalClass(sourceFile, clsFile.jpath) - else if !cb.enabled() then - // callback is not enabled, so nonLocalClasses were not reported in ExtractAPI - val fullClassName = atPhase(sbtExtractDependenciesPhase) { - ExtractDependencies.classNameAsString(claszSymbol) - } + else cb.generatedNonLocalClass(sourceFile, clsFile.jpath, className, fullClassName) } }