From f559dd55abe9f0b01af0d81cdaf2854ffa5b357d Mon Sep 17 00:00:00 2001 From: "Aleksei.Cherepanov" Date: Wed, 15 Nov 2023 19:17:09 +0100 Subject: [PATCH] Stop using IJ's maps in graph implementation of JPS (cherry picked from commit 6f3204da0ab40ce034f8b946b0f8df62aabc54a5) --- .../jetbrains/kotlin/jps/targets/KotlinJvmModuleBuildTarget.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/jps/jps-plugin/src/org/jetbrains/kotlin/jps/targets/KotlinJvmModuleBuildTarget.kt b/jps/jps-plugin/src/org/jetbrains/kotlin/jps/targets/KotlinJvmModuleBuildTarget.kt index 25fb049e5adbb..35b3de9328d47 100644 --- a/jps/jps-plugin/src/org/jetbrains/kotlin/jps/targets/KotlinJvmModuleBuildTarget.kt +++ b/jps/jps-plugin/src/org/jetbrains/kotlin/jps/targets/KotlinJvmModuleBuildTarget.kt @@ -381,6 +381,9 @@ class KotlinJvmModuleBuildTarget(kotlinContext: KotlinCompileContext, jpsModuleB val className = generatedClass.outputClass.className if (!cache.isMultifileFacade(className)) return emptySet() + // In case of graph implementation of JPS + if (previousMappings == null) return emptySet() + val name = previousMappings.getName(className.internalName) return previousMappings.getClassSources(name).toSet() }