[Yanel-dev] ViewDescriptor ClassCastException
Josias Thöny
josias.thoeny at wyona.com
Thu Nov 29 08:50:43 CET 2007
Michael Wechner wrote:
> Hi
>
> Is it possible that All classes implementing the BasicXMLResource need
> to return a ConfigurableViewDescriptor with the method
> getViewDescriptors()?
Yes, that's true.
In fact resources which extend the BasicXMLResource better should not
override the getViewDescriptors() method at all.
>
> And otherwise one will receive a ClassCastException?
>
> java.lang.ClassCastException
> at
> org.wyona.yanel.impl.resources.BasicXMLResource.getXMLView(BasicXMLResource.java:173)
>
>
> If so, then I think we need to declare this somewhere or make the log
> statement better, because I think it's not obvious and quite confusing
> in the first place.
I will add a warning.
josias
>
> WDYT?
>
> Cheers
>
> Michi
>
More information about the Yanel-development
mailing list