[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
|
// process inlineConstTracker
|
||||||
for (sourceFile: File in sourceFiles) {
|
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) {
|
val descriptor = when (cRef.constType) {
|
||||||
"Byte" -> "B"
|
"Byte" -> "B"
|
||||||
"Short" -> "S"
|
"Short" -> "S"
|
||||||
@@ -378,8 +378,8 @@ class KotlinJvmModuleBuildTarget(kotlinContext: KotlinCompileContext, jpsModuleB
|
|||||||
"Boolean" -> "Z"
|
"Boolean" -> "Z"
|
||||||
"Char" -> "C"
|
"Char" -> "C"
|
||||||
"String" -> "Ljava/lang/String;"
|
"String" -> "Ljava/lang/String;"
|
||||||
else -> ""
|
else -> null
|
||||||
}
|
} ?: return@mapNotNull null
|
||||||
Callbacks.createConstantReference(cRef.owner, cRef.name, descriptor)
|
Callbacks.createConstantReference(cRef.owner, cRef.name, descriptor)
|
||||||
} ?: continue
|
} ?: continue
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user