Skip to content

Commit

Permalink
FUSETOOLS-3655 - Use additional exports for JDK 17
Browse files Browse the repository at this point in the history
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
jbosstools/jbosstools-build#332

Signed-off-by: Aurélien Pupier <[email protected]>
  • Loading branch information
apupier committed Jul 27, 2022
1 parent 27a064c commit 7679c3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@
</systemProperties>
<useUIThread>true</useUIThread>
<useUIHarness>true</useUIHarness>
<argLine>${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</argLine>
<argLine>${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</argLine>
<osgiDataDirectory>${project.basedir}/target/work sp@cé</osgiDataDirectory>
</configuration>
</plugin>
Expand Down

0 comments on commit 7679c3c

Please sign in to comment.