summaryrefslogtreecommitdiffstats
path: root/libjava/java/net/URL.java
diff options
context:
space:
mode:
authormkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4>2003-09-27 13:09:19 +0000
committermkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4>2003-09-27 13:09:19 +0000
commit66e8ecfa8efd8deefe773faf6f753965e9b933e4 (patch)
tree2ec68ef0bde1be344e57e2ef8d0237980489829a /libjava/java/net/URL.java
parent67b247e4c10e0411f46aec7a32647c8594e53b84 (diff)
downloadppe42-gcc-66e8ecfa8efd8deefe773faf6f753965e9b933e4.tar.gz
ppe42-gcc-66e8ecfa8efd8deefe773faf6f753965e9b933e4.zip
2003-09-27 Michael Koch <konqueror@gmx.de>
* java/net/URL.java (getURLStreamHandler): Compile fixes. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@71853 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/java/net/URL.java')
-rw-r--r--libjava/java/net/URL.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/libjava/java/net/URL.java b/libjava/java/net/URL.java
index 0e0f3186945..0713c49a2c0 100644
--- a/libjava/java/net/URL.java
+++ b/libjava/java/net/URL.java
@@ -106,6 +106,11 @@ import java.util.StringTokenizer;
* caching behavior is disabled. This property is specific to this
* implementation. Sun's JDK may or may not do protocol caching, but it
* almost certainly does not examine this property.
+ * <p>
+ * Please also note that an application can install its own factory for
+ * loading protocol handlers (see setURLStreamHandlerFactory). If this is
+ * done, then the above information is superseded and the behavior of this
+ * class in loading protocol handlers is dependent on that factory.
*
* @author Aaron M. Renn <arenn@urbanophile.com>
* @author Warren Levy <warrenl@cygnus.com>
@@ -751,7 +756,7 @@ public final class URL implements Serializable
private static synchronized URLStreamHandler
getURLStreamHandler (String protocol)
{
- URLStreamHandler ph;
+ URLStreamHandler ph = null;
// First, see if a protocol handler is in our cache.
if (cache_handlers)
@@ -797,7 +802,7 @@ public final class URL implements Serializable
propVal = propVal + "gnu.gcj.protocol|sun.net.www.protocol";
// Finally loop through our search path looking for a match.
- StringTokenizer pkgPrefix = new StringTokenizer (ph_search_path, "|");
+ StringTokenizer pkgPrefix = new StringTokenizer (propVal, "|");
do
{
OpenPOWER on IntegriCloud