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
This commit is contained in:
@@ -195,11 +195,11 @@ public class ActionScriptUtils
|
|||||||
if (type.isArray() || isNaiveList(type)) {
|
if (type.isArray() || isNaiveList(type)) {
|
||||||
if (Byte.TYPE.equals(type.getComponentType())) {
|
if (Byte.TYPE.equals(type.getComponentType())) {
|
||||||
return "flash.utils.ByteArray";
|
return "flash.utils.ByteArray";
|
||||||
}
|
} else if (isField) {
|
||||||
if (isField) {
|
|
||||||
return "com.threerings.io.TypedArray";
|
return "com.threerings.io.TypedArray";
|
||||||
|
} else {
|
||||||
|
return "Array";
|
||||||
}
|
}
|
||||||
return "Array";
|
|
||||||
} else if (isNaiveMap(type)) {
|
} else if (isNaiveMap(type)) {
|
||||||
return "com.threerings.util.Map";
|
return "com.threerings.util.Map";
|
||||||
} else if (isNaiveSet(type)) {
|
} else if (isNaiveSet(type)) {
|
||||||
@@ -216,6 +216,8 @@ public class ActionScriptUtils
|
|||||||
return "com.threerings.util.Long";
|
return "com.threerings.util.Long";
|
||||||
} else if (Boolean.TYPE.equals(type)) {
|
} else if (Boolean.TYPE.equals(type)) {
|
||||||
return "Boolean";
|
return "Boolean";
|
||||||
|
} else if (Cloneable.class.equals(type)) {
|
||||||
|
return "com.threerings.util.Cloneable";
|
||||||
} else {
|
} else {
|
||||||
// inner classes are not supported by ActionScript so we _
|
// inner classes are not supported by ActionScript so we _
|
||||||
return type.getName().replaceAll("\\$", "_");
|
return type.getName().replaceAll("\\$", "_");
|
||||||
|
|||||||
Reference in New Issue
Block a user