harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From le...@apache.org
Subject svn commit: r553049 - /harmony/enhanced/classlib/trunk/modules/jndi/src/main/java/javax/naming/InitialContext.java
Date Wed, 04 Jul 2007 02:58:26 GMT
Author: leoli
Date: Tue Jul  3 19:58:25 2007
New Revision: 553049

URL: http://svn.apache.org/viewvc?view=rev&rev=553049
Log:
Apply patch for HARMONY-4141([classlib][jndi] InitialContext.getURLOrDefaultInitCtx() optimization)

Modified:
    harmony/enhanced/classlib/trunk/modules/jndi/src/main/java/javax/naming/InitialContext.java

Modified: harmony/enhanced/classlib/trunk/modules/jndi/src/main/java/javax/naming/InitialContext.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/jndi/src/main/java/javax/naming/InitialContext.java?view=diff&rev=553049&r1=553048&r2=553049
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/jndi/src/main/java/javax/naming/InitialContext.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/jndi/src/main/java/javax/naming/InitialContext.java
Tue Jul  3 19:58:25 2007
@@ -351,6 +351,9 @@
         String scheme = UrlParser.getScheme(name);
         Context ctx = null;
         if (null != scheme) {
+            if ("java".equals(scheme)) {
+                return getDefaultInitCtx();
+            }
             // So the first component is a valid URL
             ctx = NamingManager.getURLContext(scheme, myProps);
         }



Mime
View raw message