< prev index next >
test/jdk/java/net/DatagramSocket/SendDatagramToBadAddress.java
Print this page
rev 59105 : imported patch corelibs
*** 45,65 ****
return (true);
if (p.getProperty ("os.name").equals ("Linux"))
return (true);
if (p.getProperty ("os.name").startsWith ("Mac OS"))
return (true);
! // Check for specific Solaris version from here
! v = p.getProperty ("os.arch");
! if (!v.equalsIgnoreCase ("sparc"))
! return (false);
! v = p.getProperty ("os.name");
! if (!v.equalsIgnoreCase ("Solaris") && !v.equalsIgnoreCase ("SunOS"))
! return (false);
! v = p.getProperty ("os.version");
! if (v.equals ("5.8") || v.equals ("8"))
! return (false);
! return (true);
}
static void print (String s) {
if (debug)
System.out.println (s);
--- 45,55 ----
return (true);
if (p.getProperty ("os.name").equals ("Linux"))
return (true);
if (p.getProperty ("os.name").startsWith ("Mac OS"))
return (true);
! return false;
}
static void print (String s) {
if (debug)
System.out.println (s);
< prev index next >