From 4975270580eaf3f127e3d4ca5a5278bad1d90691 Mon Sep 17 00:00:00 2001 From: Mike Jensen Date: Wed, 14 Mar 2012 14:42:58 -0600 Subject: [PATCH] The file already contains the leading slash. hotspot URL.getFile() also returns a leading slash, so instead of removing the leading slash on the file, we just wont append an extra one here --- classpath/java/net/URLStreamHandler.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/classpath/java/net/URLStreamHandler.java b/classpath/java/net/URLStreamHandler.java index 2505408921..f3f64340c6 100644 --- a/classpath/java/net/URLStreamHandler.java +++ b/classpath/java/net/URLStreamHandler.java @@ -72,9 +72,6 @@ public abstract class URLStreamHandler { } } if (url.getFile() != null) { - if (url.getHost() != null) { - sb.append("/"); - } sb.append(url.getFile()); } return sb.toString();