Handle parameterized types in invocation services and receivers.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6232 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -133,8 +133,10 @@ public class GenUtil extends com.samskivert.util.GenUtil
|
||||
return "((Double)" + name + ").doubleValue()";
|
||||
} else if (Object.class.equals(type)) {
|
||||
return name; // no need to cast object
|
||||
} else {
|
||||
} else if (type instanceof Class<?>) {
|
||||
return "(" + simpleName(type) + ")" + name;
|
||||
} else {
|
||||
return "this.<" + simpleName(type) + ">cast(" + name + ")";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user