RequestMapping annotation leads to empty RequestMethod array when looking up annot.
We're building some kind of automatic self describing REST service (live doc generation). For this we have a controller method that looks for all controller beans and fetches also the requestmapping information to display them in a nice friendly html page.
For thsi we use the MetadataReader (created via CachingMetadataReaderFactory) to fetch the Metadata of the class.
When we get the MethodMetaData for the public methods we find the RequestMapping annotation along with produces and value parameters, but the method field is always empty, although we have it configured in the source code and the mapping works. So the information should be somewhere. This is quite puzzling! :-)
I tried to find the reason in the spring framework, but haven't found the reason so far...
FYI: We're using Spring 3.1