From 74080e7cb6491e68d67e5bd3706368eaaf8d2f62 Mon Sep 17 00:00:00 2001 From: Adel El-Beik <48713346+adelel1@users.noreply.github.com> Date: Wed, 13 May 2020 15:11:25 +0100 Subject: [PATCH] CORDA-3772: Now specify source and target of 8 when compiling contract classes. (#6249) --- .../net/corda/testing/core/internal/ContractJarTestUtils.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testing/core-test-utils/src/main/kotlin/net/corda/testing/core/internal/ContractJarTestUtils.kt b/testing/core-test-utils/src/main/kotlin/net/corda/testing/core/internal/ContractJarTestUtils.kt index 413f2bf843..3ba57fa20a 100644 --- a/testing/core-test-utils/src/main/kotlin/net/corda/testing/core/internal/ContractJarTestUtils.kt +++ b/testing/core-test-utils/src/main/kotlin/net/corda/testing/core/internal/ContractJarTestUtils.kt @@ -110,7 +110,7 @@ object ContractJarTestUtils { val fileManager = compiler.getStandardFileManager(null, null, null) fileManager.setLocation(StandardLocation.CLASS_OUTPUT, listOf(workingDir.toFile())) - compiler.getTask(System.out.writer(), fileManager, null, null, null, listOf(source)).call() + compiler.getTask(System.out.writer(), fileManager, null, listOf("-source", "8", "-target", "8"), null, listOf(source)).call() val outFile = fileManager.getFileForInput(StandardLocation.CLASS_OUTPUT, packages.joinToString("."), "$className.class") return Paths.get(outFile.name) }