Commit 19b9eb71 by Gary Benson Committed by Gary Benson

2007-02-23 Gary Benson <gbenson@redhat.com>

	* java/lang/VMCompiler.java
	(compileClass): Don't lose zeros from within the digest.

From-SVN: r122259
parent 3758f34d
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
......
/* 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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment