Mantis - Documentation
Viewing Issue Advanced Details
3380 text always 03-10-09 01:53 03-10-09 01:53
trzmiel  
 
normal  
new  
open  
none    
none  
0003380: Serialization Deflation tutorial typo
In http://www.caucho.com/resin-3.1/examples/hessian-serialize/index.xtp, [^] below "Deflation", there is:

Deflation envelope = new Deflation();
ByteArrayOutputStream bos = new ByteArrayOutputStream();
Hessian2Output out = new Hessian2Output(bos);
out = out.wrap(out);

I think it should be:

Deflation envelope = new Deflation();
ByteArrayOutputStream bos = new ByteArrayOutputStream();
Hessian2Output out = new Hessian2Output(bos);
out = envelope.wrap(out);

There are no notes attached to this issue.