Skip to content

Commit

Permalink
Use Void instead of Unit in RMI calls, should fix EA-82064
Browse files Browse the repository at this point in the history
("Could not initialize class Kotlin.Unit")
  • Loading branch information
ligee committed Feb 22, 2017
1 parent b604f0d commit b3a1311
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,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: ProcessCanceledException) {
// avoid passing exceptions that may have different serialVersionUID on across rmi border
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ interface CompilerCallbackServicesFacade : Remote {
// ----------------------------------------------------
// CompilationCanceledStatus
@Throws(RemoteException::class, RmiFriendlyCompilationCanceledException::class)
fun compilationCanceledStatus_checkCanceled(): Unit
fun compilationCanceledStatus_checkCanceled(): Void?
}


Expand Down

0 comments on commit b3a1311

Please sign in to comment.