-
Bug
-
Resolution: Fixed
-
P2
-
6u10
-
b03
-
x86
-
windows_2008
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2190487 | 7 | Chris Hegarty | P3 | Closed | Fixed | b91 |
JDK-2169002 | 6u12 | Michael McMahon | P4 | Closed | Won't Fix |
JCK : JCK-runtime-6a b14
J2SE : FAIL - jdk6u10 build 23, 24
Platform[s] : FAIL - Windows (2008) x86
switch/Mode : FAIL - any
Test api/java_net/NetworkInterface/index.html#misc NetworkInterface2006 fails on stt-54.russia
with folowing output:
"getDisplayName() returned non null but empty String."
Test passes on stt-53.russia.
You can use this code for reproduce:
import java.io.*;
import java.net.*;
import java.util.*;
public class abtest1 {
public static void main(String argv[]) {
Enumeration nis = null;
try {
nis = NetworkInterface.getNetworkInterfaces();
} catch (SocketException se) {
System.out.println("Unexpected " + se);
se.printStackTrace();
System.out.println("public String getDisplayName() Test Failed");
}
if(nis == null) {
System.out.println("No network interfaces could be found on this machine");
System.out.println("public String getDisplayName() Test Failed");
}
NetworkInterface ni = null;
for(; nis.hasMoreElements(); ) {
ni = (NetworkInterface)nis.nextElement();
String name = ni.getDisplayName();
System.out.println("getDisplayName(): " + name );
System.out.println("Name: " + ni.getName());
Enumeration<InetAddress> inetAddresses=ni.getInetAddresses();
for (InetAddress inetAddress : Collections.list(inetAddresses))
{
System.out.println("InetAddress: " + inetAddress);
}
if( name != null && name.equals("") )
{
System.out.println("getDisplayName() returned non null but empty String");
System.out.println("public String getDisplayName() Test Failed");
}
System.out.println("");
}
System.out.println("OKAY");
}
}
J2SE : FAIL - jdk6u10 build 23, 24
Platform[s] : FAIL - Windows (2008) x86
switch/Mode : FAIL - any
Test api/java_net/NetworkInterface/index.html#misc NetworkInterface2006 fails on stt-54.russia
with folowing output:
"getDisplayName() returned non null but empty String."
Test passes on stt-53.russia.
You can use this code for reproduce:
import java.io.*;
import java.net.*;
import java.util.*;
public class abtest1 {
public static void main(String argv[]) {
Enumeration nis = null;
try {
nis = NetworkInterface.getNetworkInterfaces();
} catch (SocketException se) {
System.out.println("Unexpected " + se);
se.printStackTrace();
System.out.println("public String getDisplayName() Test Failed");
}
if(nis == null) {
System.out.println("No network interfaces could be found on this machine");
System.out.println("public String getDisplayName() Test Failed");
}
NetworkInterface ni = null;
for(; nis.hasMoreElements(); ) {
ni = (NetworkInterface)nis.nextElement();
String name = ni.getDisplayName();
System.out.println("getDisplayName(): " + name );
System.out.println("Name: " + ni.getName());
Enumeration<InetAddress> inetAddresses=ni.getInetAddresses();
for (InetAddress inetAddress : Collections.list(inetAddresses))
{
System.out.println("InetAddress: " + inetAddress);
}
if( name != null && name.equals("") )
{
System.out.println("getDisplayName() returned non null but empty String");
System.out.println("public String getDisplayName() Test Failed");
}
System.out.println("");
}
System.out.println("OKAY");
}
}
- backported by
-
JDK-2190487 api/java_net/NetworkInterface/index.html#misc: getDisplayName() returned non null but empty String
- Closed
-
JDK-2169002 api/java_net/NetworkInterface/index.html#misc: getDisplayName() returned non null but empty String
- Closed