tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 45065] RequestDispatcher restricts access to ApplicationHttpRequest
Date Tue, 27 May 2008 20:09:59 GMT

--- Comment #5 from Mark Thomas <>  2008-05-27 13:09:59 PST ---
It's amazing what a night's sleep does for you. The explanation is simple and
obvious - I should have seen it earlier.

o.a.c.connector.RequestFacade is public
o.a.c.core.ApplicationHttpRequest is not (ie package private)

There is no guarantee in the spec that the classes implementing any of the spec
classes, such as HttpServletRequest, will be public and therefore accessible
for the sort of manipulation via reflection that you are trying to do.

As I indicated earlier, to be sure of not seeing the error, you'll need to use
the appropriate spec class.

I appreciate that this makes generic reflection difficult. The users list is
usually pretty good at coming up with ways around issues like this. I suggest
you post a summary of what you are trying to achieve there and see what ideas

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message