Use Void instead of Unit in RMI calls, should fix EA-82064

("Could not initialize class Kotlin.Unit")

(cherry picked from commit b3a1311)
This commit is contained in:
Ilya Chernikov
2017-02-21 17:57:07 +03:00
parent 00e8dfe1be
commit fa5728b288
2 changed files with 3 additions and 2 deletions
@@ -80,9 +80,10 @@ open class CompilerCallbackServicesFacadeServer(
override fun lookupTracker_isDoNothing(): Boolean = lookupTracker_isDoNothing
override fun compilationCanceledStatus_checkCanceled() {
override fun compilationCanceledStatus_checkCanceled(): Void? {
try {
compilationCanceledStatus!!.checkCanceled()
return null
}
catch (e: Exception) {
// avoid passing exceptions that may have different serialVersionUID on across rmi border
@@ -81,7 +81,7 @@ interface CompilerCallbackServicesFacade : Remote {
// ----------------------------------------------------
// CompilationCanceledStatus
@Throws(RemoteException::class, RmiFriendlyCompilationCanceledException::class)
fun compilationCanceledStatus_checkCanceled(): Unit
fun compilationCanceledStatus_checkCanceled(): Void?
}