From 558f5cddce93e01a46f718191b8ac4b0f99a8c39 Mon Sep 17 00:00:00 2001 From: sollecitom Date: Thu, 29 Mar 2018 13:17:22 +0100 Subject: [PATCH] Porting change to make JPA entities non-final and serializable. --- .../net/corda/node/internal/RpcExceptionHandlingProxy.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/node/src/main/kotlin/net/corda/node/internal/RpcExceptionHandlingProxy.kt b/node/src/main/kotlin/net/corda/node/internal/RpcExceptionHandlingProxy.kt index f8434b9b52..60f285ba2b 100644 --- a/node/src/main/kotlin/net/corda/node/internal/RpcExceptionHandlingProxy.kt +++ b/node/src/main/kotlin/net/corda/node/internal/RpcExceptionHandlingProxy.kt @@ -5,6 +5,7 @@ import net.corda.core.contracts.ContractState import net.corda.core.crypto.SecureHash import net.corda.core.doOnError import net.corda.core.flows.FlowLogic +import net.corda.core.flows.StateMachineRunId import net.corda.core.identity.AbstractParty import net.corda.core.identity.CordaX500Name import net.corda.core.internal.concurrent.doOnError @@ -128,6 +129,8 @@ class RpcExceptionHandlingProxy(private val delegate: SecureCordaRPCOps) : Corda override fun isFlowsDrainingModeEnabled() = wrap(delegate::isFlowsDrainingModeEnabled) + override fun killFlow(id: StateMachineRunId) = wrap { delegate.killFlow(id) } + override fun shutdown() = wrap(delegate::shutdown) private fun wrap(call: () -> RESULT): RESULT {