diff --git a/core/src/test/kotlin/net/corda/core/serialization/CordaClassResolverTests.kt b/core/src/test/kotlin/net/corda/core/serialization/CordaClassResolverTests.kt index bd95d319d9..0ccad7ade3 100644 --- a/core/src/test/kotlin/net/corda/core/serialization/CordaClassResolverTests.kt +++ b/core/src/test/kotlin/net/corda/core/serialization/CordaClassResolverTests.kt @@ -72,6 +72,8 @@ class DefaultSerializableSerializer : Serializer() { class CordaClassResolverTests { @Test fun `Annotation on enum works for specialised entries`() { + // TODO: Remove this suppress when we upgrade to kotlin 1.1 or when JetBrain fixes the bug. + @Suppress("UNSUPPORTED_FEATURE") CordaClassResolver(EmptyWhitelist).getRegistration(Foo.Bar::class.java) } diff --git a/samples/irs-demo/src/main/kotlin/net/corda/irs/api/InterestRateSwapAPI.kt b/samples/irs-demo/src/main/kotlin/net/corda/irs/api/InterestRateSwapAPI.kt index 4aa4ad5b76..bfe16d166f 100644 --- a/samples/irs-demo/src/main/kotlin/net/corda/irs/api/InterestRateSwapAPI.kt +++ b/samples/irs-demo/src/main/kotlin/net/corda/irs/api/InterestRateSwapAPI.kt @@ -97,6 +97,8 @@ class InterestRateSwapAPI(val rpc: CordaRPCOps) { val priorDemoDate = fetchDemoDate() // Can only move date forwards if (newDemoDate.isAfter(priorDemoDate)) { + // TODO: Remove this suppress when we upgrade to kotlin 1.1 or when JetBrain fixes the bug. + @Suppress("UNSUPPORTED_FEATURE") rpc.startFlow(UpdateBusinessDayFlow::Broadcast, newDemoDate).returnValue.getOrThrow() return Response.ok().build() } diff --git a/samples/raft-notary-demo/src/main/kotlin/net/corda/notarydemo/NotaryDemo.kt b/samples/raft-notary-demo/src/main/kotlin/net/corda/notarydemo/NotaryDemo.kt index 71e772aece..e24100128a 100644 --- a/samples/raft-notary-demo/src/main/kotlin/net/corda/notarydemo/NotaryDemo.kt +++ b/samples/raft-notary-demo/src/main/kotlin/net/corda/notarydemo/NotaryDemo.kt @@ -76,6 +76,8 @@ private class NotaryDemoClientApi(val rpc: CordaRPCOps) { * @return a list of encoded signer public keys - one for every transaction */ private fun notariseTransactions(transactions: List): List { + // TODO: Remove this suppress when we upgrade to kotlin 1.1 or when JetBrain fixes the bug. + @Suppress("UNSUPPORTED_FEATURE") val signatureFutures = transactions.map { rpc.startFlow(NotaryFlow::Client, it).returnValue } return Futures.allAsList(signatureFutures).getOrThrow().map { it.map { it.by.toStringShort() }.joinToString() } } diff --git a/samples/simm-valuation-demo/src/main/kotlin/net/corda/vega/api/PortfolioApi.kt b/samples/simm-valuation-demo/src/main/kotlin/net/corda/vega/api/PortfolioApi.kt index 8f1d09f08c..82e5e759b1 100644 --- a/samples/simm-valuation-demo/src/main/kotlin/net/corda/vega/api/PortfolioApi.kt +++ b/samples/simm-valuation-demo/src/main/kotlin/net/corda/vega/api/PortfolioApi.kt @@ -269,6 +269,8 @@ class PortfolioApi(val rpc: CordaRPCOps) { return withParty(partyName) { otherParty -> val existingSwap = getPortfolioWith(otherParty) val flowHandle = if (existingSwap == null) { + // TODO: Remove this suppress when we upgrade to kotlin 1.1 or when JetBrain fixes the bug. + @Suppress("UNSUPPORTED_FEATURE") rpc.startFlow(SimmFlow::Requester, otherParty, params.valuationDate) } else { rpc.startFlow(SimmRevaluation::Initiator, getPortfolioStateAndRefWith(otherParty).ref, params.valuationDate)