From 02e0b2218cae4c0154532f2c04b849c773f7a595 Mon Sep 17 00:00:00 2001 From: Sofus Mortensen Date: Fri, 30 Dec 2016 22:29:55 +0100 Subject: [PATCH] universal: wrong exception type --- .../src/main/kotlin/net/corda/contracts/universal/Util.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/experimental/src/main/kotlin/net/corda/contracts/universal/Util.kt b/experimental/src/main/kotlin/net/corda/contracts/universal/Util.kt index 4c99f57469..153431c5be 100644 --- a/experimental/src/main/kotlin/net/corda/contracts/universal/Util.kt +++ b/experimental/src/main/kotlin/net/corda/contracts/universal/Util.kt @@ -2,7 +2,6 @@ package net.corda.contracts.universal import com.google.common.collect.ImmutableSet import com.google.common.collect.Sets -import com.sun.tools.corba.se.idl.InvalidArgument import net.corda.core.contracts.Frequency import net.corda.core.crypto.CompositeKey import net.corda.core.crypto.Party @@ -73,7 +72,7 @@ fun replaceParty(perceivable: Perceivable, from: Party, to: Party): Per is PerceivableAnd -> replaceParty(perceivable.left, from, to) and replaceParty(perceivable.right, from, to) is PerceivableOr -> replaceParty(perceivable.left, from, to) or replaceParty(perceivable.right, from, to) is TimePerceivable -> perceivable - else -> throw InvalidArgument("replaceParty " + perceivable) + else -> throw IllegalArgumentException("replaceParty " + perceivable) } fun replaceParty(action: Action, from: Party, to: Party): Action =