diff --git a/src/main/java/com/threerings/presents/tools/GenServiceTask.java b/src/main/java/com/threerings/presents/tools/GenServiceTask.java index 160c24968..344df91b0 100644 --- a/src/main/java/com/threerings/presents/tools/GenServiceTask.java +++ b/src/main/java/com/threerings/presents/tools/GenServiceTask.java @@ -383,8 +383,13 @@ public class GenServiceTask extends InvocationTask // change imports of Foo$Bar to Foo_Bar imports.translateInnerClasses(); - // marshallers just use the built-in actionscript classes in place of byte, short, etc - imports.removeGlobals(); + // Boolean is built in + imports.remove("boolean"); + + // int is used for these + imports.remove("byte"); + imports.remove("short"); + imports.remove("char"); // convert java bases and primitives ActionScriptUtils.convertBaseClasses(imports); diff --git a/src/main/java/com/threerings/presents/tools/ImportSet.java b/src/main/java/com/threerings/presents/tools/ImportSet.java index 04ba2aa7a..80df9fe96 100644 --- a/src/main/java/com/threerings/presents/tools/ImportSet.java +++ b/src/main/java/com/threerings/presents/tools/ImportSet.java @@ -236,6 +236,11 @@ public class ImportSet } } + public void remove (String name) + { + _imports.remove(name); + } + /** * Removes the name of a class from the imports. * @param clazz the class whose name should be removed @@ -348,7 +353,7 @@ public class ImportSet }); List> result = Lists.newArrayList(); List current = null; - int lastGroup = -1; + int lastGroup = -2; for (String imp : list) { int group = findImportGroup(imp, groups); if (group != lastGroup) {