harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hinde...@apache.org
Subject svn commit: r926789 - in /harmony/enhanced/trunk/classlib/modules/archive/src/main/java: java/util/jar/Pack200.java org/apache/harmony/archive/internal/nls/messages.properties
Date Tue, 23 Mar 2010 21:22:41 GMT
Author: hindessm
Date: Tue Mar 23 21:22:41 2010
New Revision: 926789

URL: http://svn.apache.org/viewvc?rev=926789&view=rev
Log:
Minor nls fix.

Modified:
    harmony/enhanced/trunk/classlib/modules/archive/src/main/java/java/util/jar/Pack200.java
    harmony/enhanced/trunk/classlib/modules/archive/src/main/java/org/apache/harmony/archive/internal/nls/messages.properties

Modified: harmony/enhanced/trunk/classlib/modules/archive/src/main/java/java/util/jar/Pack200.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/trunk/classlib/modules/archive/src/main/java/java/util/jar/Pack200.java?rev=926789&r1=926788&r2=926789&view=diff
==============================================================================
--- harmony/enhanced/trunk/classlib/modules/archive/src/main/java/java/util/jar/Pack200.java
(original)
+++ harmony/enhanced/trunk/classlib/modules/archive/src/main/java/java/util/jar/Pack200.java
Tue Mar 23 21:22:41 2010
@@ -25,6 +25,8 @@ import java.security.AccessController;
 import java.security.PrivilegedAction;
 import java.util.SortedMap;
 
+import org.apache.harmony.archive.internal.nls.Messages;
+
 /**
  * Class factory for {@link Pack200.Packer} and {@link Pack200.Unpacker}.
  */
@@ -64,7 +66,7 @@ public abstract class Pack200 {
                             return ClassLoader.getSystemClassLoader()
                                     .loadClass(className).newInstance();
                         } catch (Exception e) {
-                            throw new Error("Can't load class " + className, e);
+                            throw new Error(Messages.getString("archive.3E",className), e);
//$NON-NLS-1$
                         }
                     }
                 });
@@ -92,7 +94,7 @@ public abstract class Pack200 {
                             return ClassLoader.getSystemClassLoader()
                                     .loadClass(className).newInstance();
                         } catch (Exception e) {
-                            throw new Error("Can't load class " + className, e);
+                            throw new Error(Messages.getString("archive.3E",className), e);
//$NON-NLS-1$
                         }
                     }
                 });

Modified: harmony/enhanced/trunk/classlib/modules/archive/src/main/java/org/apache/harmony/archive/internal/nls/messages.properties
URL: http://svn.apache.org/viewvc/harmony/enhanced/trunk/classlib/modules/archive/src/main/java/org/apache/harmony/archive/internal/nls/messages.properties?rev=926789&r1=926788&r2=926789&view=diff
==============================================================================
--- harmony/enhanced/trunk/classlib/modules/archive/src/main/java/org/apache/harmony/archive/internal/nls/messages.properties
(original)
+++ harmony/enhanced/trunk/classlib/modules/archive/src/main/java/org/apache/harmony/archive/internal/nls/messages.properties
Tue Mar 23 21:22:41 2010
@@ -77,3 +77,4 @@ archive.3A=Central Directory Entry not f
 archive.3B=in ZipEntry.readIntLE(RandomAccessFile)
 archive.3C=in ZipEntry.readShortLE(InputStream)
 archive.3D=in ZipEntry.readIntLE(InputStream)
+archive.3E=Cannot load class {0}



Mime
View raw message