RFR: 8275640 (win) java.net.NetworkInterface issues with IPv6-only environments [v2]

Daniel Jeliński duke at openjdk.java.net
Thu Oct 28 07:40:15 UTC 2021


On Thu, 28 Oct 2021 07:20:38 GMT, Daniel Jeliński <duke at openjdk.java.net> wrote:

>> Clean up of various issues related to error handling and memory management
>
> Daniel Jeliński has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Restore support for IPv6-only operation

I was able to find and fix the problems with IPv6-only operation; all of the following:
`NetworkInterface.getNetworkInterfaces()`
`NetworkInterface.getByName`
`NetworkInterface.getByIndex`
`NetworkInterface.getByInetAddress`
`NetworkInterface#isUp`
succeeded and returned correct data on a machine with IPv4 after f440a6e0f79179469ffa36cc35863efd3301a494 was applied.
While working on this I noticed that:
- building on IPv6-only machine doesn't work; I got an error message mentioning Sjavac and `No port file values materialized.` I guess I'll revisit this later.
- JTreg tests on IPv6-only machine don't work; I only get a cryptic TEST FAILURE message (but if the tests successfully passed earlier when IPv4 was enabled, I get TEST SUCCESS, probably cached somewhere). I don't even know how to start troubleshooting this.

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

PR: https://git.openjdk.java.net/jdk/pull/6090


More information about the net-dev mailing list