Hi Daniel,

Thanks a lot for the answer and the explanation.  I didn't try with
interface and it didn't work. It makes sense now why it didn't work.

Thanks again,

Li



dkulp wrote:
> 
> 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
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-use-ParamReader.getParameterNames%28%29--tp24752038p24763376.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to