Revision: 9769
Author: gwt.mirror...@gmail.com
Date: Thu Feb 24 14:17:12 2011
Log: Fixes a bug in serializing Dependencies.DirectRef and
uses the updated class signature hash computation in CompiledClass
Review at http://gwt-code-reviews.appspot.com/1365801
http://code.google.com/p/google-web-toolkit/source/detail?r=9769
Modified:
/trunk/dev/core/src/com/google/gwt/dev/javac/CompiledClass.java
/trunk/dev/core/src/com/google/gwt/dev/javac/Dependencies.java
=======================================
--- /trunk/dev/core/src/com/google/gwt/dev/javac/CompiledClass.java Wed Feb
16 11:06:56 2011
+++ /trunk/dev/core/src/com/google/gwt/dev/javac/CompiledClass.java Thu Feb
24 11:11:29 2011
@@ -17,7 +17,6 @@
import com.google.gwt.dev.util.DiskCache;
import com.google.gwt.dev.util.StringInterner;
-import com.google.gwt.dev.util.Util;
import com.google.gwt.dev.util.Name.InternalName;
import org.eclipse.jdt.internal.compiler.classfmt.ClassFileReader;
@@ -96,12 +95,11 @@
/**
* Returns a hash code on the byte code of the class.
- *
- * TODO(zundel): should be a hash on only the public API for this class.
*/
public String getSignatureHash() {
if (signatureHash == null) {
- signatureHash = Util.computeStrongName(getBytes());
+ signatureHash =
+ BytecodeSignatureMaker.getCompileDependencySignature(getBytes());
}
return signatureHash;
}
=======================================
--- /trunk/dev/core/src/com/google/gwt/dev/javac/Dependencies.java Wed Feb
16 11:06:56 2011
+++ /trunk/dev/core/src/com/google/gwt/dev/javac/Dependencies.java Thu Feb
24 11:11:29 2011
@@ -60,7 +60,7 @@
return target.getSignatureHash();
}
- private Object writeReplace() {
+ protected Object writeReplace() {
return new SerializedRef(target.getInternalName(),
getSignatureHash());
}
}
--
http://groups.google.com/group/Google-Web-Toolkit-Contributors