SpringSource/spring-framework — pull request #66 by Dridi (2012-04-16 17:34:29+00:00)
Title: Quick fix for SPR-9176

Hi,

I had a memory leak problem on production using @Resource on HttpServletRequest as described here :
https://jira.springsource.org/browse/SPR-9176

After some research, I found that @Autowired and @Resource don't behave the same. It seems to me that @Autowired does one more thing, that is to say caching of the dependency declaration. I came up with this small _quickfix_ patch which simply adds similar caching to @Resource. The leak is gone, and no test is broken.

I mean't to commit this in the 3.1.x branch but the diff looks identical in the master branch. I leave the backport for older versions to you.