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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user