]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
2007-02-23 Gary Benson <gbenson@redhat.com>
authorGary Benson <gbenson@redhat.com>
Fri, 23 Feb 2007 15:15:58 +0000 (15:15 +0000)
committerGary Benson <gary@gcc.gnu.org>
Fri, 23 Feb 2007 15:15:58 +0000 (15:15 +0000)
* java/lang/VMCompiler.java
(compileClass): Don't lose zeros from within the digest.

From-SVN: r122259

libjava/ChangeLog
libjava/java/lang/VMCompiler.java

index eaea0ecaef3bac0b163ebd4c8b38ca317351ea10..ac2d49535818cfaaf6027a242a2eb8147159c00a 100644 (file)
@@ -1,3 +1,8 @@
+2007-02-23  Gary Benson  <gbenson@redhat.com>
+
+       * java/lang/VMCompiler.java
+       (compileClass): Don't lose zeros from within the digest.
+
 2007-02-22  Jakub Jelinek  <jakub@redhat.com>
 
        PR libgcj/17002
index 0e4701c840988621942319b63faea95c4bc4bd12..1f600f12e90eebcef1b1ee5ac9b38ba3528ee005 100644 (file)
@@ -1,5 +1,5 @@
 /* VMClassLoader.java -- Reference implementation of compiler interface
-   Copyright (C) 2004, 2005, 2006 Free Software Foundation
+   Copyright (C) 2004, 2005, 2006, 2007 Free Software Foundation
 
 This file is part of GNU Classpath.
 
@@ -248,7 +248,12 @@ final class VMCompiler
        hexBytes.append(File.separatorChar);
        int digestLength = digest.length;
        for (int i = 0; i < digestLength; ++i)
-         hexBytes.append(Integer.toHexString(digest[i] & 0xff));
+         {
+           int v = digest[i] & 0xff;
+           if (v < 16)
+             hexBytes.append('0');         
+           hexBytes.append(Integer.toHexString(v));
+         }
 
        // FIXME: use System.mapLibraryName?
        // I'm thinking we should use that, plus a class specified