equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1995, 2010, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1995, 2011, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
23 * questions. |
23 * questions. |
24 */ |
24 */ |
25 |
25 |
26 package java.net; |
26 package java.net; |
27 |
27 |
28 import java.io.FileDescriptor; |
|
29 import java.io.IOException; |
28 import java.io.IOException; |
30 import java.io.InterruptedIOException; |
|
31 import java.nio.channels.DatagramChannel; |
29 import java.nio.channels.DatagramChannel; |
32 import java.security.AccessController; |
30 import java.security.AccessController; |
33 import java.security.PrivilegedExceptionAction; |
31 import java.security.PrivilegedExceptionAction; |
34 |
32 |
35 /** |
33 /** |
298 } catch (java.security.PrivilegedActionException e) { |
296 } catch (java.security.PrivilegedActionException e) { |
299 oldImpl = true; |
297 oldImpl = true; |
300 } |
298 } |
301 } |
299 } |
302 |
300 |
303 static Class implClass = null; |
301 static Class<?> implClass = null; |
304 |
302 |
305 void createImpl() throws SocketException { |
303 void createImpl() throws SocketException { |
306 if (impl == null) { |
304 if (impl == null) { |
307 if (factory != null) { |
305 if (factory != null) { |
308 impl = factory.createDatagramSocketImpl(); |
306 impl = factory.createDatagramSocketImpl(); |