< prev index next >
test/jdk/java/net/DatagramSocket/SendDatagramToBadAddress.java
Print this page
rev 59383 : [mq]: final
*** 1,7 ****
/*
! * Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
--- 1,7 ----
/*
! * Copyright (c) 2000, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*** 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 >