harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lian...@apache.org
Subject svn commit: r501772 - /harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/net/URL.java
Date Wed, 31 Jan 2007 09:00:54 GMT
Author: liangyx
Date: Wed Jan 31 01:00:54 2007
New Revision: 501772

URL: http://svn.apache.org/viewvc?view=rev&rev=501772
Log:
Apply patch for HARMONY-3083([classlib][luni]Acquire Util.toASCIILowerCase in java.net.URL)

Modified:
    harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/net/URL.java

Modified: harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/net/URL.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/net/URL.java?view=diff&rev=501772&r1=501771&r2=501772
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/net/URL.java (original)
+++ harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/net/URL.java Wed Jan 31
01:00:54 2007
@@ -26,6 +26,7 @@
 
 import org.apache.harmony.luni.util.Msg;
 import org.apache.harmony.luni.util.PriviAction;
+import org.apache.harmony.luni.util.Util;
 
 /**
  * An instance of class URL specifies the location of a resource on the world
@@ -264,7 +265,8 @@
                     index = -1;
                 } else {
                     // Ignore case in protocol names.
-                    protocol = protocol.toLowerCase();
+                	// Scheme is defined by ASCII characters.
+                    protocol = Util.toASCIILowerCase(protocol);
                 }
             }
         }



Mime
View raw message