This needs to be a TypedArray and then written out with writeObject() not
writeField(). Fiddly. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4561 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -2,6 +2,7 @@ package com.threerings.presents.net {
|
||||
|
||||
import com.threerings.io.ObjectInputStream;
|
||||
import com.threerings.io.ObjectOutputStream;
|
||||
import com.threerings.io.TypedArray;
|
||||
|
||||
import com.threerings.util.StringUtil;
|
||||
|
||||
@@ -11,7 +12,8 @@ public class AuthRequest extends UpstreamMessage
|
||||
{
|
||||
_creds = creds;
|
||||
_version = version;
|
||||
_bootGroups = bootGroups;
|
||||
_bootGroups = new TypedArray("[Ljava.lang.String;");
|
||||
_bootGroups.concat(bootGroups);
|
||||
|
||||
// magic up a timezone in the format "GMT+XX:XX"
|
||||
// Of course, the sign returned from getTimezoneOffset() is wrong
|
||||
@@ -31,12 +33,12 @@ public class AuthRequest extends UpstreamMessage
|
||||
out.writeObject(_creds);
|
||||
out.writeField(_version);
|
||||
out.writeField(_zone);
|
||||
out.writeField(_bootGroups);
|
||||
out.writeObject(_bootGroups);
|
||||
}
|
||||
|
||||
protected var _creds :Credentials;
|
||||
protected var _version :String;
|
||||
protected var _zone :String;
|
||||
protected var _bootGroups :Array;
|
||||
protected var _bootGroups :TypedArray;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user