JDK-8024675 : java/net/NetworkInterface/UniqueMacAddressesTest.java fails on Windows
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 7,8
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2013-09-12
  • Updated: 2014-10-15
  • Resolved: 2013-09-13
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7 JDK 8
7u76Fixed 8 b108Fixed
Related Reports
Relates :  
Description
TESTFAIL:java/net/NetworkInterface/UniqueMacAddressesTest.java

---------System.out:(7/276)----------
UniqueMacAddressesTest: start 
Adding NetworkInterface net4
Adding NetworkInterface net6
Adding NetworkInterface eth5
Comparing netif net4 and netif net4
Comparing netif net4 and netif net6
compare hardware addresses 00-00-00-00-00-00-00-E0 and 00-00-00-00-00-00-00-E0
----------System.err:(13/724)----------
java.lang.RuntimeException: mac address uniqueness test failed
	at UniqueMacAddressesTest.execute(UniqueMacAddressesTest.java:61)
	at UniqueMacAddressesTest.main(UniqueMacAddressesTest.java:42)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:491)
	at com.sun.javatest.regtest.MainAction$SameVMRunnable.run(MainAction.java:746)
	at java.lang.Thread.run(Thread.java:724)

Comments
Test Passed
26-11-2013

Some windows test machines have two tunnel adapters, and they are configured with the same MAC address, hence the test fails. The NetworkInterface test list is built based on a NetworkInterface having a hardware address. This needs to be amended with a check that the interface isUp(), and possibly those adapters that do not have a bound IP address.
13-09-2013

New test added for 8021372.
12-09-2013