You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by li...@apache.org on 2007/01/31 10:00:54 UTC
svn commit: r501772 -
/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/net/URL.java
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);
}
}
}