RFR: 8304503: Modernize debugging jvm args in demo netbeans projects

Eirik Bjorsnos duke at openjdk.org
Thu Apr 20 05:58:42 UTC 2023


On Mon, 20 Mar 2023 13:06:19 GMT, Eirik Bjorsnos <duke at openjdk.org> wrote:

> Please review this PR which suggests to modernize the JVM arguments used to enable debugging in the netbeans project files for demos. 
> 
> The netbeans projects found in src/demo/share/nbproject currently use the following outdated combination of jvm arguments to set up debugging:
> 
> 
> <jvmarg value="-Xdebug"/>
> <jvmarg value="-Xnoagent"/>
> <jvmarg value="-Djava.compiler=none"/>
> <jvmarg value="-Xrunjdwp:transport=dt_socket,address=${jpda.address}"/>
> 
> 
> They should instead just do:
> 
> 
> <jvmarg value="-agentlib:jdwp=transport=dt_socket,server=n,suspend=n,address=${jpda.address}"/>
> 
> 
> Additionally, the source dir set up in build.properties for these projects do not seem to align with the source layout.
> 
> `src.dir=${main.dir}/src` should instead be just `src.dir=${main.dir}/`

The removal of the `java.compiler` system property just got integrated:

https://github.com/openjdk/jdk/pull/13475

It would be good to get the arcaic usage of `java.compiler` in these Netbeans projects updated.

Looking for reviewers :-)

-------------

PR Comment: https://git.openjdk.org/jdk/pull/13101#issuecomment-1515754069



More information about the client-libs-dev mailing list