I can't compile program as below.
When I compiled it, error occured and it says
[ERROR] Type 'TestManager<TestImpl>' was not serializable and has no
concrete serializable subtypes
Is there any problem in the code ?
thanx
public interface ITest {
int getId();
String getName();
}
public class TestImpl implements ITest {
public int getId() {
return -1;
}
public String getName() {
return "test";
}
}
public class TestManager<E extends ITest> {
private List<E> list;
}
public interface TestService extends RemoteService {
TestManager<TestImpl> getTest();
}
public interface TestServiceAsync {
void getTest(AsyncCallback<TestManager<TestImpl>> callback);
}
public class TestServiceImpl extends RemoteServiceServlet implements
TestService {
public TestManager<TestImpl> getTest() {
return null;
}
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---