Status: New
Owner: ----

New issue 596 by [email protected]: RequestWrappers don't work with Servlet Extension
http://code.google.com/p/google-guice/issues/detail?id=596

I have a Filter wrapping every request in my Servlet Application in some request wrapper (let's call it SpecialWrapper, extending HttpServletRequestWrapper). When I cast the HttpServletRequests back to SpecialWrapper somewhere down the filter chain I get:

java.lang.ClassCastException: com.google.inject.servlet.ServletDefinition$2 cannot be cast to net.my.app.servlets.SpecialWrapper
        at 
net.my.app.servlets.SomeRandomServlet.doGet(SomeRandomServlet.java:75)

--
You received this message because you are subscribed to the Google Groups 
"google-guice-dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-guice-dev?hl=en.

Reply via email to