matthiasblaesing commented on PR #8264: URL: https://github.com/apache/netbeans/pull/8264#issuecomment-2688519974
The cross-jdk access indeed seems to be problematic. NB running on JDK 23 can use target JDK 23 and 21, but not 17. Running this by hand shows the problem: ``` matthias@enterprise:~$ /usr/lib/jvm/java-17-openjdk-amd64/bin/java -classpath /home/matthias/bin/netbeans-dev/java/modules/ext/nb-mod-jshell-probe.jar: -Xrunjdwp:transport=dt_socket,address=localhost:53633,suspend=y,includevirtualthreads=n org.netbeans.lib.jshell.agent.AgentWorker 35645 ERROR: JDWP option syntax error: -agentlib:jdwp=transport=dt_socket,address=localhost:53633,suspend=y,includevirtualthreads=n matthias@enterprise:~$ ``` The new parameter `includevirtualthreads` breaks the connection setup. In the opposite direction I see a problem when running on JDK 17 and choosing JDK 21 as platform. If I read `ShellSession.java` correctly, the code asks the runtime JDK to create a javac with target of the target platform. This must go wrong. So I think this is not a regression, just a feature, that is broken when not used in default configuration (target JDK != runtime JDK). -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
