Fixed JPMS object casting
This commit is contained in:
parent
7c5a935105
commit
ab2af26b48
|
@ -24,6 +24,7 @@ import dorkbox.util.classes.ClassHelper
|
||||||
import kotlinx.coroutines.CoroutineScope
|
import kotlinx.coroutines.CoroutineScope
|
||||||
import kotlinx.coroutines.launch
|
import kotlinx.coroutines.launch
|
||||||
import mu.KLogger
|
import mu.KLogger
|
||||||
|
import java.lang.Throwable
|
||||||
import java.lang.reflect.Proxy
|
import java.lang.reflect.Proxy
|
||||||
import java.util.*
|
import java.util.*
|
||||||
|
|
||||||
|
@ -287,7 +288,7 @@ internal class RmiManagerGlobal<CONNECTION : Connection>(logger: KLogger,
|
||||||
insideResult = ex
|
insideResult = ex
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
insideResult.initCause(null)
|
(insideResult as Throwable).initCause(null)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
insideResult
|
insideResult
|
||||||
|
@ -326,7 +327,7 @@ internal class RmiManagerGlobal<CONNECTION : Connection>(logger: KLogger,
|
||||||
result = ex
|
result = ex
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
result.initCause(null)
|
(result as Throwable).initCause(null)
|
||||||
}
|
}
|
||||||
|
|
||||||
RmiUtils.cleanStackTraceForImpl(result as Exception, false)
|
RmiUtils.cleanStackTraceForImpl(result as Exception, false)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user