for (JMethod method : methods) {
ClientRpcVisitor.checkReturnType(logger, method);
bundle.setNeedsDelayedInfo(type, method);
- bundle.setNeedsParamTypes(subType, method);
+ bundle.setNeedsParamTypes(type, method);
JType[] parameterTypes = method.getParameterTypes();
for (JType paramType : parameterTypes) {
JSONArray paramJson = new JSONArray();
Type[] parameterTypes = null;
- if (!isLegacyVariableChange(invocation)) {
+ if (!isLegacyVariableChange(invocation)
+ && !isJavascriptRpc(invocation)) {
try {
Type type = new Type(invocation.getInterfaceName(),
null);
makeUidlRequest(req.toString(), extraParams, forceSync);
}
+ private boolean isJavascriptRpc(MethodInvocation invocation) {
+ String connectorId = invocation.getConnectorId();
+ ServerConnector connector = connectorMap.getConnector(connectorId);
+ return connector instanceof HasJavaScriptConnectorHelper;
+ }
+
private boolean isLegacyVariableChange(MethodInvocation invocation) {
return ApplicationConstants.UPDATE_VARIABLE_METHOD.equals(invocation
.getInterfaceName())