[JPS] Fix incremental build after changing Java constant

InlineConstantTracker implemented for tracking changed java static final constants, that used in kotlin.

#KT-46506 Fixed
This commit is contained in:
Aleksei.Cherepanov
2021-09-02 12:32:30 +03:00
committed by TeamCityServer
parent 23420ecf7a
commit cc5382b37e
9 changed files with 126 additions and 1 deletions
@@ -0,0 +1,16 @@
package org.jetbrains.kotlin.incremental.components
import org.jetbrains.kotlin.container.DefaultImplementation
import java.io.Serializable
@DefaultImplementation(InlineConstTracker.DoNothing::class)
interface InlineConstTracker {
fun report(filePath: String, cRefs: Collection<ConstantRef>)
object DoNothing : InlineConstTracker {
override fun report(filePath: String, cRefs: Collection<ConstantRef>) {
}
}
}
data class ConstantRef(var owner: String, var name: String, var constType: String) : Serializable