From 68aba0e92a62564588d6fc74c37ac420cd0770ff Mon Sep 17 00:00:00 2001 From: Tom Conkling Date: Wed, 5 Jan 2011 00:21:16 +0000 Subject: [PATCH] Add a mapping from java.lang.Cloneable -> com.threerings.util.Cloneable git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6412 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- .../com/threerings/presents/tools/ActionScriptUtils.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/threerings/presents/tools/ActionScriptUtils.java b/src/main/java/com/threerings/presents/tools/ActionScriptUtils.java index f2a72bb1a..3bce1c2d3 100644 --- a/src/main/java/com/threerings/presents/tools/ActionScriptUtils.java +++ b/src/main/java/com/threerings/presents/tools/ActionScriptUtils.java @@ -195,11 +195,11 @@ public class ActionScriptUtils if (type.isArray() || isNaiveList(type)) { if (Byte.TYPE.equals(type.getComponentType())) { return "flash.utils.ByteArray"; - } - if (isField) { + } else if (isField) { return "com.threerings.io.TypedArray"; + } else { + return "Array"; } - return "Array"; } else if (isNaiveMap(type)) { return "com.threerings.util.Map"; } else if (isNaiveSet(type)) { @@ -216,6 +216,8 @@ public class ActionScriptUtils return "com.threerings.util.Long"; } else if (Boolean.TYPE.equals(type)) { return "Boolean"; + } else if (Cloneable.class.equals(type)) { + return "com.threerings.util.Cloneable"; } else { // inner classes are not supported by ActionScript so we _ return type.getName().replaceAll("\\$", "_");