Is this a GWT question?  It sounds like a generic polymorphism
question.

If the latter, you have two options.  Either add wing span information
to the parent type (Animal) or do explicit checks for Birds and then
do a cast.

Good luck!

On Dec 8, 9:11 am, DaveC <[email protected]> wrote:
> Hi,
>
> What I'm trying to do is pass ListEditor a list of generic types e.g.
> an AbstractAnimal type but what the list gets might be a Bird type, a
> Fish type, Mammal... etc...
>
> The problem is that that my Bird type has a property "wingSpan" which
> the Fish type does not.. they might also share a property e.g. "name"
> or "canFly".
>
> The Editor complains that it "couldn't find a getter for canFly in
> proxy type ...AbstractAnimal".
>
> Is there any way around this?
>
> Thanks for you help in advance.
>
> Cheers,
> Dave

-- 
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.

Reply via email to