"Brian Munroe" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> This is more of a Servlet API question, but pertains to Tomcat
> nonetheless.  I am using Tomcat 5.5.23 with JDK 1.6.
>
> I am having a problem with Generics and request.getParameterNames().
> I keep getting a unchecked cast warning (just a warning, but still).
>
> I was going to just use the @SuppressWarnings annotation, since I
> pretty much can guarantee that the method will always return an
> Enumeration of Strings, right?
>

Yes, the spec guarantees that it returns an Enumeration of Strings.

> Just making sure I would be following the standard idiom until it gets 
> fixed.
>

This is on the list of things for the Servlet 3.0 spec 
(http://www.jcp.org/en/jsr/detail?id=315), but that means you will have to 
wait for Tomcat 7.0.x to get the "fix".  All of the Servlet 2.x specs 
specify a non-generic Enumeration for this method.

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




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