Browse Source

fix: REPORT-113117【远程协议变更】数据链接失败时,设计器弹窗依然提示链接成功

修复获取对象错误的问题。需要换成 FineWorkspaceStubPool
new-design
Harrison 11 months ago
parent
commit
4333a6ee18
  1. 6
      designer-base/src/main/java/com/fr/design/env/RemoteWorkspace.java

6
designer-base/src/main/java/com/fr/design/env/RemoteWorkspace.java vendored

@ -12,7 +12,7 @@ import com.fr.workspace.Workspace;
import com.fr.workspace.connect.WorkspaceClient;
import com.fr.workspace.connect.WorkspaceConnection;
import com.fr.workspace.connect.WorkspaceConnectionInfo;
import com.fr.workspace.engine.rpc.WorkspaceProxyPool;
import com.fr.workspace.engine.client.FineWorkspaceStubPool;
import com.fr.workspace.pool.WorkObjectPool;
import com.fr.workspace.server.authority.decision.DecisionOperator;
@ -125,8 +125,8 @@ public class RemoteWorkspace implements Workspace {
public <T> T get(Class<T> type, ExceptionHandler exceptionHandler){
if(exceptionHandler != null) {
WorkObjectPool objectPool = client.getPool();
if (objectPool instanceof WorkspaceProxyPool) {
return ((WorkspaceProxyPool) objectPool).get(type, exceptionHandler);
if (objectPool instanceof FineWorkspaceStubPool) {
return objectPool.get(type, exceptionHandler);
}else {
return client.getPool().get(type);
}

Loading…
Cancel
Save