[jdk17u-dev] RFR: 8286781: Replace the deprecated/obsolete gethostbyname and inet_addr calls

fitzsim duke at openjdk.org
Wed May 22 17:46:06 UTC 2024


On Tue, 21 May 2024 15:49:26 GMT, fitzsim <duke at openjdk.org> wrote:

> I propose backporting the fix for `8286781` to `jdk17u`.
> 
> I tested the changes on `jdk17u-dev` `master`, on `Fedora 38` `x86-64`, `slowdebug` and `fastdebug` configurations.  The test was to run `IdealGraphVisualizer`, per `jdk17u-dev/src/utils/IdealGraphVisualizer/README.md`, then run, e.g.:
> 
> 
> ./build/linux-x86_64-server-fastdebug/jdk/bin/java -XX:+PrintIdealGraph -XX:PrintIdealGraphLevel=1 -classpath ~/source/hello-java Hello
> 
> 
> I needed extra JVM arguments in `jdk17u-dev/src/utils/IdealGraphVisualizer/application/target/idealgraphvisualizer/bin/idealgraphvisualizer` to make the visualizer utility work on 17:
> 
> 
>             --jdkhome '"$jdkhome"' \
>             -J--add-opens=java.base/java.net=ALL-UNNAMED \
>             -J--add-opens=java.base/java.security=ALL-UNNAMED \
>             -J--add-opens=java.base/java.lang=ALL-UNNAMED \
>             -J--add-opens=java.desktop/sun.awt=ALL-UNNAMED \
>             -J--add-opens=java.desktop/javax.swing.plaf.synth=ALL-UNNAMED \
>             -J--add-opens=java.desktop/javax.swing=ALL-UNNAMED \
>             -J--add-exports=java.desktop/com.sun.java.swing.plaf.gtk=ALL-UNNAMED \
>             --clusters '"$clusters"' \
> 
> 
> Networking between the test and the utility worked fine with the backport applied.

All the automated builds passed.  I do not currently have access to `Windows` or `macOS` environments to test `IdealGraphVisualizer` on those operating systems though, however, since it is the same network connection code and it built on both those operating systems, I expect connecting to the visualizer will work.

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

PR Comment: https://git.openjdk.org/jdk17u-dev/pull/2487#issuecomment-2125405363


More information about the jdk-updates-dev mailing list