Checkpoint.
Never in my life have I spent so much time debugging so little. I think the flash player is full of bugs, I've learned to just run everything two or three times and chase the error that happens the most. Fun! git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3929 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -99,16 +99,7 @@ public class Streamer
|
||||
public function writeObject (obj :Object, out :ObjectOutputStream) :void
|
||||
//throws IOError
|
||||
{
|
||||
trace("TODO");
|
||||
|
||||
if (obj is Array) {
|
||||
trace("Arrays not yet done. Crap!");
|
||||
/**
|
||||
var arr :Array = Array(obj); // not strictly necessary
|
||||
var length :int = arr.length;
|
||||
out.writeInt(length);
|
||||
*/
|
||||
}
|
||||
throw new Error("Abstract");
|
||||
}
|
||||
|
||||
public function createObject (ins :ObjectInputStream) :Object
|
||||
@@ -121,7 +112,7 @@ public class Streamer
|
||||
public function readObject (obj :Object, ins :ObjectInputStream) :void
|
||||
//throws IOError
|
||||
{
|
||||
trace("TODO");
|
||||
throw new Error("Abstract");
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,10 +1,15 @@
|
||||
package com.threerings.io {
|
||||
|
||||
import com.threerings.presents.Log;
|
||||
|
||||
public dynamic class TypedArray extends Array
|
||||
{
|
||||
public function TypedArray (jtype :String)
|
||||
{
|
||||
_jtype = jtype;
|
||||
if (_jtype == "" || _jtype == null) {
|
||||
Log.info("Created a typed array with bogus type {" + _jtype + "}");
|
||||
}
|
||||
}
|
||||
|
||||
public function getJavaType () :String
|
||||
|
||||
@@ -16,6 +16,7 @@ public class ArrayStreamer extends Streamer
|
||||
{
|
||||
public function ArrayStreamer (jname :String)
|
||||
{
|
||||
Log.debug("Created an array streamer for type: {" + jname + "}");
|
||||
super(TypedArray, jname);
|
||||
|
||||
if (jname.charAt(1) === "[") {
|
||||
|
||||
Reference in New Issue
Block a user