Apparently this boolean needs to be set explicitly; also, whitespace fix.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6228 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Andrzej Kapolka
2010-10-23 04:06:47 +00:00
parent 8a70b9c5bd
commit 93aa0b5bf6
2 changed files with 7 additions and 4 deletions
@@ -121,9 +121,10 @@ public class GenDObjectTask extends GenTask
data.put("transport", transport);
// if this field is an array, we need its component types
if (ftype.isArray()) {
boolean array = ftype.isArray();
data.put("have_elem", array);
if (array) {
Class<?> etype = ftype.getComponentType();
data.put("have_elem", true);
data.put("elemtype", GenUtil.simpleName(etype));
data.put("wrapelem", GenUtil.boxArgument(etype, "value"));
data.put("wrapoelem", GenUtil.boxArgument(etype, "ovalue"));
@@ -13,7 +13,8 @@
requestAttributeChange(
{{capfield}}, {{wrapfield}}, {{wrapofield}}{{transport}});
this.{{field}} = {{clonefield}};
}{{#have_elem}}
}
{{#have_elem}}
/**
* Requests that the <code>index</code>th element of
@@ -31,4 +32,5 @@
requestElementUpdate(
{{capfield}}, index, {{wrapelem}}, {{wrapoelem}}{{transport}});
this.{{field}}[index] = value;
}{{/have_elem}}
}
{{/have_elem}}