harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ghar...@apache.org
Subject svn commit: r422724 - /incubator/harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/channels/spi/SelectorProvider.java
Date Mon, 17 Jul 2006 14:02:20 GMT
Author: gharley
Date: Mon Jul 17 07:02:20 2006
New Revision: 422724

URL: http://svn.apache.org/viewvc?rev=422724&view=rev
Log:
HARMONY 893 : [nio] java.nio.channels.spi.SelectorProvider.provider() should not throw SecurityException
from SelectorProvider.provider()

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/channels/spi/SelectorProvider.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/channels/spi/SelectorProvider.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/channels/spi/SelectorProvider.java?rev=422724&r1=422723&r2=422724&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/channels/spi/SelectorProvider.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/channels/spi/SelectorProvider.java
Mon Jul 17 07:02:20 2006
@@ -91,7 +91,12 @@
                 provider = loadProviderByJar();
             }
             if (null == provider) {
-                provider = new SelectorProviderImpl();
+                provider = AccessController
+                        .doPrivileged(new PrivilegedAction<SelectorProvider>() {
+                            public SelectorProvider run() {
+                                return new SelectorProviderImpl();
+                            }
+                        });
             }
         }
         return provider;



Mime
View raw message