On 6/22/06, David Wall <[EMAIL PROTECTED]> wrote:
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.
No :-)
At least not until J2EE 1.5
regards
Leon
P.S. You can switch this warning off.
Leon
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]