diff options
author | Mark Spruiell <mes@zeroc.com> | 2008-12-23 14:04:44 -0800 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2008-12-23 14:04:44 -0800 |
commit | 7dbbe903f6ec9b9af90b8d949c5e0231596b02ef (patch) | |
tree | 68df7f8f58ad52eb6774aff464f5cebb2f1a918d /java/src/IceInternal/Network.java | |
parent | Fix 3376 - IceGrid registry doesn't recognize IceStorm properties (diff) | |
download | ice-7dbbe903f6ec9b9af90b8d949c5e0231596b02ef.tar.bz2 ice-7dbbe903f6ec9b9af90b8d949c5e0231596b02ef.tar.xz ice-7dbbe903f6ec9b9af90b8d949c5e0231596b02ef.zip |
bug 3617 - more applet fixes
Diffstat (limited to 'java/src/IceInternal/Network.java')
-rw-r--r-- | java/src/IceInternal/Network.java | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/java/src/IceInternal/Network.java b/java/src/IceInternal/Network.java index 36cad790163..ffa411b6635 100644 --- a/java/src/IceInternal/Network.java +++ b/java/src/IceInternal/Network.java @@ -356,6 +356,13 @@ public final class Network se.initCause(ex); throw se; } + catch(java.lang.SecurityException ex) + { + closeSocketNoThrow(fd); + Ice.SocketException se = new Ice.SocketException(); + se.initCause(ex); + throw se; + } if(System.getProperty("os.name").equals("Linux")) { @@ -866,6 +873,13 @@ public final class Network { Ice.DNSException e = new Ice.DNSException(); e.host = host; + e.initCause(ex); + throw e; + } + catch(java.lang.SecurityException ex) + { + Ice.SocketException e = new Ice.SocketException(); + e.initCause(ex); throw e; } @@ -914,6 +928,12 @@ public final class Network se.initCause(e); throw se; } + catch(java.lang.SecurityException ex) + { + Ice.SocketException e = new Ice.SocketException(); + e.initCause(ex); + throw e; + } return result; } @@ -956,6 +976,12 @@ public final class Network catch(java.net.UnknownHostException ex) { } + catch(java.lang.SecurityException ex) + { + Ice.SocketException e = new Ice.SocketException(); + e.initCause(ex); + throw e; + } } java.util.ArrayList<String> hosts = new java.util.ArrayList<String>(); @@ -1199,6 +1225,13 @@ public final class Network { Ice.DNSException e = new Ice.DNSException(); e.host = host; + e.initCause(ex); + throw e; + } + catch(java.lang.SecurityException ex) + { + Ice.SocketException e = new Ice.SocketException(); + e.initCause(ex); throw e; } @@ -1232,6 +1265,12 @@ public final class Network assert(false); return null; } + catch(java.lang.SecurityException ex) + { + Ice.SocketException e = new Ice.SocketException(); + e.initCause(ex); + throw e; + } } private static java.net.InetAddress[] @@ -1256,5 +1295,11 @@ public final class Network assert(false); return null; } + catch(java.lang.SecurityException ex) + { + Ice.SocketException e = new Ice.SocketException(); + e.initCause(ex); + throw e; + } } } |