From 39e7e79aaff47e231e1249a33034fdd259ff4ee7 Mon Sep 17 00:00:00 2001 From: Sebastian Sellmair Date: Mon, 21 Oct 2024 06:18:21 +0200 Subject: [PATCH] fixup! kotlinx-coroutines-debug: Fix split-package with the -core module --- .../kotlin/DynamicAttachDebugJpmsTest.kt | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/integration-testing/jpmsTest/src/debugDynamicAgentJpmsTest/kotlin/DynamicAttachDebugJpmsTest.kt b/integration-testing/jpmsTest/src/debugDynamicAgentJpmsTest/kotlin/DynamicAttachDebugJpmsTest.kt index e8a775e4b6..dcfcd0e106 100644 --- a/integration-testing/jpmsTest/src/debugDynamicAgentJpmsTest/kotlin/DynamicAttachDebugJpmsTest.kt +++ b/integration-testing/jpmsTest/src/debugDynamicAgentJpmsTest/kotlin/DynamicAttachDebugJpmsTest.kt @@ -12,15 +12,23 @@ import kotlin.test.* class DynamicAttachDebugJpmsTest { /** - * Using: + * This test is disabled because: + * Dynamic Attach with JPMS is not yet supported. * + * Here is the state of experiments: + * When launching this test with additional workarounds like + * ``` * jvmArgs("--add-exports=kotlinx.coroutines.debug/kotlinx.coroutines.repackaged.net.bytebuddy=com.sun.jna") * jvmArgs("--add-exports=kotlinx.coroutines.debug/kotlinx.coroutines.repackaged.net.bytebuddy.agent=com.sun.jna") + *``` * + * Then we see issues like * + * ``` * Caused by: java.lang.IllegalStateException: The Byte Buddy agent is not loaded or this method is not called via the system class loader * at kotlinx.coroutines.debug/kotlinx.coroutines.repackaged.net.bytebuddy.agent.Installer.getInstrumentation(Installer.java:61) * ... 54 more + * ``` */ @Ignore("shaded byte-buddy does not work with JPMS") @Test