私の GWT アプリは IDEA で書かれています。gwt RPC 呼び出しを行うには、2 つのインターフェイスを作成します。最初の1つ:
RemoteServiceRelativePath("ServerManagement")
public interface ServerManagement extends RemoteService {
String userLogin(String customerId, String login, String password) throws Exception;
ArrayList<PropertyItem> getProperties(String customerId) throws Exception;
void receive(String customerId) throws Exception;
そして2番目の非同期のもの:
public interface ServerManagementAsync {
void userLogin(String customerId, String login, String password, AsyncCallback<String> asyncCallback);
void getProperties(String customerId, AsyncCallback<ArrayList<PropertyItem>> asyncCallback);
void receive(String customerId, AsyncCallback<String> asyncCallback);
}
しかし、両方のインターフェイスで、「受信」メソッドの行は赤で線を引き、IDE は次のメッセージを返します。
Methods of asynchronous remote service 'ServerManagementAsync' are not consistent with 'ServerManagement' less... (Ctrl+F1)
This inspection reports any inconsistency between a methods of synchronous and asynchronous interfaces of remote service
これを修正する方法は?