Revision: 7014
Author: [email protected]
Date: Wed Nov 18 15:35:54 2009
Log: One-line fix to building with Precompile/CompilePerms/Link.
The code should be serializing an AST, not serializing
an output stream onto itself.

Review by scottb (TBR), jat

http://code.google.com/p/google-web-toolkit/source/detail?r=7014

Modified:
  /trunk/dev/core/src/com/google/gwt/dev/jjs/UnifiedAst.java

=======================================
--- /trunk/dev/core/src/com/google/gwt/dev/jjs/UnifiedAst.java  Wed Oct 28  
09:26:56 2009
+++ /trunk/dev/core/src/com/google/gwt/dev/jjs/UnifiedAst.java  Wed Nov 18  
15:35:54 2009
@@ -185,7 +185,7 @@
        diskCache.transferToStream(serializedAstToken, stream);
      } else if (initialAst != null) {
        // Serialize into raw bytes.
-      Util.writeObjectToStream(stream, stream);
+      Util.writeObjectToStream(stream, initialAst);
      } else {
        throw new IllegalStateException(
            "No serialized AST was cached and AST was already consumed.");

-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors

Reply via email to