RFR : 8182672: Java 8u121 on Linux intermittently returns null for MAC address
Langer, Christoph
christoph.langer at sap.com
Thu Jun 22 18:04:07 UTC 2017
Hi Sean,
the patch to change the static declaration of struct ifreq ifr into a non static declaration should be done in any case. I had suspected the issue should disappear then but as Vyom told otherwise, I'll also try to test this.
As for the test: NetworkInterface.getNetworkInterfaces() will return a typed enumeration, so you could iterate like:
for (NetworkInterface ni : NetworkInterface.getNetworkInterfaces()) {
...
}
Then the code would be more compact.
I'll get back to you with the results of my testing.
Best regards
Christoph
> -----Original Message-----
> From: Seán Coffey [mailto:sean.coffey at oracle.com]
> Sent: Donnerstag, 22. Juni 2017 18:29
> To: OpenJDK Network Dev list <net-dev at openjdk.java.net>; Langer,
> Christoph <christoph.langer at sap.com>
> Subject: RFR : 8182672: Java 8u121 on Linux intermittently returns null for
> MAC address
>
> JDK 10 fix required to correct a race issue in NetworkInterface. I don't
> believe the ifreq struct needs to be static in any case. New auto unit
> testcase also. I propose to skip this fix for JDK 9 and fix in an update
> release for that family. I also plan to port this to jdk8u-dev.
>
> https://bugs.openjdk.java.net/browse/JDK-8182672
> webrev :
> http://cr.openjdk.java.net/~coffeys/webrev.8182672.jdk10/webrev/
>
> regards,
> Sean.
More information about the net-dev
mailing list