Skip to content

Commit f559dd5

Browse files
author
Aleksei.Cherepanov
committed
Stop using IJ's maps in graph implementation of JPS
(cherry picked from commit 6f3204d)
1 parent 363b05b commit f559dd5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

jps/jps-plugin/src/org/jetbrains/kotlin/jps/targets/KotlinJvmModuleBuildTarget.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,9 @@ class KotlinJvmModuleBuildTarget(kotlinContext: KotlinCompileContext, jpsModuleB
381381
val className = generatedClass.outputClass.className
382382
if (!cache.isMultifileFacade(className)) return emptySet()
383383

384+
// In case of graph implementation of JPS
385+
if (previousMappings == null) return emptySet()
386+
384387
val name = previousMappings.getName(className.internalName)
385388
return previousMappings.getClassSources(name).toSet()
386389
}

0 commit comments

Comments
 (0)