On Fri July 31 2009 3:03:17 am liw wrote: > Hi, > > Can I use ParamReader class to get the parameter names for a method defined > in a interface class? > We need to get the parameter name defined in the interface class instead of > implementation class. Is there anyway to achieve that?
Well, one of the "interesting" facts about java class files is that for interfaces, parameter names are NOT compiled into the classfile for interfaces and abstract methods, even with full debug stuff turned on. Thus, the answer is no. :-( This is one of the major reasons the WebParam annotation is kind of required. There isn't a way to get "real" names out of an interface. -- Daniel Kulp [email protected] http://www.dankulp.com/blog
