Your inner class does not have a no-arg constructor. It may look like it
does, but non-static inner classes require an instance of the containing
class to be given to them, and this is an implicit constructor argument.
Make your inner class static, and then it might work.
Kwhit wrote:
> Still no good, the lines of code below fail with an error message
> telling me that DataModel.InnerClass' was not serializable and has no
> concrete serializable subtypes
>
> public class DataModel implements Serializable, Iterable<DataRow> {
>
> public class InnerClass implements Serializable {
> private static final long serialVersionUID =
> -1674468523162022397L;
> public int i;
> public InnerClass() { }
>
> public int getI() {
> return i;
> }
>
> public void setI(int i) {
> this.i = i;
> }
> }
>
> public InnerClass ic;
> public InnerClass getIc() {
> return ic;
> }
> public void setIc(InnerClass ic) {
> this.ic = ic;
> }
>
>
> >
>
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---