0
你好,我嘗試序列化我的枚舉類,但我有錯誤,當我嘗試編譯我的項目。嘗試在枚舉中添加IsSerializable時出現gwt錯誤
這是我的簡單枚舉:
import com.google.gwt.user.client.rpc.IsSerializable;
public enum ConversationType implements IsSerializable {
PAIR, GROUP, ALL;
ConversationType() {
}
}
我也有我的POM依賴關係得到了GWT用戶:
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-user</artifactId>
<version>2.5.0</version>
<scope>provided</scope>
</dependency>
在該項目中我有其他DTO對象,該對象實現IsSerializable 。 當我從該枚舉刪除IsSerializable一切都很好。
這是我的錯誤:
An exception has occurred in the compiler (1.7.0_13). Please file a bug at the Java Developer Connection (http://java.sun.com/webapps/bugreport) after checking the Bug Parade for duplicates. Include your program and the following diagnostic in your report. Thank you.
com.sun.tools.javac.code.Symbol$CompletionFailure: class file for com.google.gwt.user.client.rpc.IsSerializable not found
感謝戰利品。 – 2013-04-20 16:56:29