[CHERRY PICKED FROM IJ] Fix JPS compilation
GitOrigin-RevId: a799879de2add4ca719307ddf9a143605468e731 Original commit: https://github.com/JetBrains/intellij-community/commit/9746206871853f44205b31dd8757ed2a4ad586ca
This commit is contained in:
committed by
Nikita Bobko
parent
2ea089f0d2
commit
a4bf7c9772
@@ -367,7 +367,7 @@ class KotlinJvmModuleBuildTarget(kotlinContext: KotlinCompileContext, jpsModuleB
|
||||
|
||||
// process inlineConstTracker
|
||||
for (sourceFile: File in sourceFiles) {
|
||||
val cRefs = inlineConstTracker.inlineConstMap[sourceFile.path]?.map { cRef: ConstantRef ->
|
||||
val cRefs = inlineConstTracker.inlineConstMap[sourceFile.path]?.mapNotNull { cRef: ConstantRef ->
|
||||
val descriptor = when (cRef.constType) {
|
||||
"Byte" -> "B"
|
||||
"Short" -> "S"
|
||||
@@ -378,8 +378,8 @@ class KotlinJvmModuleBuildTarget(kotlinContext: KotlinCompileContext, jpsModuleB
|
||||
"Boolean" -> "Z"
|
||||
"Char" -> "C"
|
||||
"String" -> "Ljava/lang/String;"
|
||||
else -> ""
|
||||
}
|
||||
else -> null
|
||||
} ?: return@mapNotNull null
|
||||
Callbacks.createConstantReference(cRef.owner, cRef.name, descriptor)
|
||||
} ?: continue
|
||||
|
||||
|
||||
Reference in New Issue
Block a user