[haXe] haxe.Unserializer bug??

Nicolas Cannasse ncannasse at motion-twin.com
Wed Aug 1 14:23:30 CEST 2007


> I'm using haxe.remoting with Flash9 to Neko ThreadRemotingServer.
> I got an error message:
> 
> Class not found jp.ize.isharaku.info::User
> Called from haxe.remoting.SocketConnection::processMessage line 200
> Called from haxe.Unserializer::unserialize line 162
> Called from haxe.Unserializer::unserialize line 162
> Called from haxe.Unserializer::unserialize line 186
> 
> and I changed std libarary source code std/haxe/Unserializer.hx
> line 183
> from
>             var name = unserialize();
> to
>             var name = StringTools.replace(unserialize(),"::",".");
> 
> It works for me.
> 
> Is this correct?

The problem is in std/Type.hx getClassName which shouldn't return :: in
Flash9 :

#if flash9
var str : String = untyped
__global__["flash.utils.getQualifiedClassName"](c);
return str.split("::").join(".");
#else true
....

This is fixed on CVS.

Nicolas




More information about the Haxe mailing list