[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
@@ -17,6 +17,7 @@
package org.jetbrains.kotlin.daemon.common
import org.jetbrains.kotlin.incremental.components.LookupInfo
import org.jetbrains.kotlin.incremental.components.ConstantRef
import org.jetbrains.kotlin.incremental.js.JsInlineFunctionHash
import org.jetbrains.kotlin.load.kotlin.incremental.components.JvmPackagePartProto
import org.jetbrains.kotlin.modules.TargetId
@@ -48,6 +49,9 @@ interface CompilerCallbackServicesFacade : Remote {
@Throws(RemoteException::class)
fun hasExpectActualTracker(): Boolean
@Throws(RemoteException::class)
fun hasInlineConstTracker(): Boolean
@Throws(RemoteException::class)
fun hasIncrementalResultsConsumer(): Boolean
@@ -101,6 +105,11 @@ interface CompilerCallbackServicesFacade : Remote {
@Throws(RemoteException::class)
fun expectActualTracker_report(expectedFilePath: String, actualFilePath: String)
// ---------------------------------------------------
// InlineConstTracker
@Throws(RemoteException::class)
fun inlineConstTracker_report(className: String, cRefs: Collection<ConstantRef>)
// ---------------------------------------------------
// IncrementalResultsConsumer (js)
@Throws(RemoteException::class)