StateCache is defined as generic StateCache<K,V> but the implementations do 
some hardcoded upcast:

    public Object restoreSerializedView(FacesContext facesContext,
            String viewId, Object viewState)
    {
        Object[] state = (Object[]) viewState;


That's just vodoo. Either the generics usage is wrong or the implementation.

Why do we try to store the state as generics? All we need is a pluggable 
factory which gives me the state of the current request. There is no generics 
info in there imo.

LieGrue,
strub

Reply via email to