From 7679c3c69ba21d4416e04f7a7f570ff9182a02b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Pupier?= Date: Tue, 26 Jul 2022 16:33:35 +0200 Subject: [PATCH] FUSETOOLS-3655 - Use additional exports for JDK 17 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit it avoids this kind of error java.lang.IllegalAccessException: class org.jboss.tools.common.jdt.debug.tools.internal.Tools cannot access class sun.jvmstat.monitor.MonitoredHost (in module jdk.internal.jvmstat) because module jdk.internal.jvmstat does not export sun.jvmstat.monitor to unnamed module it is provided in p2.inf but need to add it in test explicitely too. See https://github.com/jbosstools/jbosstools-base/blob/main/common/plugins/org.jboss.tools.common.jdt.debug/META-INF/p2.inf This will need to be updated to reuse property coming from Jboss Tools parent when available https://github.com/jbosstools/jbosstools-build/pull/332 Signed-off-by: Aurélien Pupier --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index eced34a41e..31ac894f38 100644 --- a/pom.xml +++ b/pom.xml @@ -254,7 +254,7 @@ true true - ${tycho.testArgLine} -XX:+HeapDumpOnOutOfMemoryError ${platformSystemProperties} ${systemProperties} ${moduleProperties} -Dusage_reporting_enabled=false -Dorg.jboss.tools.vpe.loadxulrunner=false -Dsun.net.client.defaultConnectTimeout=30000 -Dsun.net.client.defaultReadTimeout=30000 + ${tycho.testArgLine} -XX:+HeapDumpOnOutOfMemoryError ${platformSystemProperties} ${systemProperties} --add-exports=jdk.internal.jvmstat/sun.jvmstat.monitor=ALL-UNNAMED ${moduleProperties} -Dusage_reporting_enabled=false -Dorg.jboss.tools.vpe.loadxulrunner=false -Dsun.net.client.defaultConnectTimeout=30000 -Dsun.net.client.defaultReadTimeout=30000 ${project.basedir}/target/work sp@cé