We need InvocationService inner-listeners in our raw imports because those

aren't magically in scope for ActionScript, we have to generate import
statements for them.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4414 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2006-10-05 20:38:11 +00:00
parent 63c4e10d3c
commit e532378ce4
@@ -126,13 +126,12 @@ public abstract class InvocationTask extends Task
// InvocationService listeners, we need to import its
// marshaller as well
String sname = GenUtil.simpleName(arg, null);
if (_ilistener.isAssignableFrom(arg) &&
!sname.startsWith("InvocationService")) {
if (_ilistener.isAssignableFrom(arg)) {
String mname = arg.getName();
mname = StringUtil.replace(mname, "Service", "Marshaller");
mname = StringUtil.replace(mname, "Listener", "Marshaller");
mname = StringUtil.replace(mname, ".client.", ".data.");
if (!samepkg) {
if (!samepkg && !sname.startsWith("InvocationService")) {
imports.put(importify(mname), Boolean.TRUE);
}
if (rawimports != null) {