harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ge...@apache.org
Subject svn commit: r414620 - in /incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java: java/net/URLClassLoader.java org/apache/harmony/luni/util/MsgHelp.java
Date Thu, 15 Jun 2006 15:44:53 GMT
Author: geirm
Date: Thu Jun 15 08:44:53 2006
New Revision: 414620

URL: http://svn.apache.org/viewvc?rev=414620&view=rev
Log:
changes suggested by DRLVM

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/net/URLClassLoader.java
    incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/org/apache/harmony/luni/util/MsgHelp.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/net/URLClassLoader.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/net/URLClassLoader.java?rev=414620&r1=414619&r2=414620&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/net/URLClassLoader.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/net/URLClassLoader.java
Thu Jun 15 08:44:53 2006
@@ -1043,6 +1043,9 @@
                                     + name.length()).append(filename).append(
                                     name).toString();
                         }
+
+                        filename = URLDecoder.decode(filename, "UTF-8");
+
                         File file = new File(filename);
                         // Don't throw exceptions for speed
                         if (file.exists()) {

Modified: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/org/apache/harmony/luni/util/MsgHelp.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/org/apache/harmony/luni/util/MsgHelp.java?rev=414620&r1=414619&r2=414620&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/org/apache/harmony/luni/util/MsgHelp.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/org/apache/harmony/luni/util/MsgHelp.java
Thu Jun 15 08:44:53 2006
@@ -110,7 +110,7 @@
 					.doPrivileged(new PrivilegedAction<Object>() {
 						public Object run() {
 							return ResourceBundle.getBundle(resource, locale,
-									loader);
+									loader != null ? loader : ClassLoader.getSystemClassLoader());
 						}
 					});
 		} catch (MissingResourceException e) {



Mime
View raw message