Is there a correct way to retrieve a typed List from a request/session attribute? The attribute is returned as an Object, but using a cast like:

List<MyType> var = (List<MyType>)request.getAttribute(name);

results in a warning:

Type safety: The cast from Object to List<MyType> is actually checking against the erased type List

The code works fine, but I'd like to get rid of the warning if there's a correct way to do this cast.

Thanks,
David

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to