problem in the getDeclaredFields method of JClass

View: New views
1 Messages — Rating Filter:   Alert me  

problem in the getDeclaredFields method of JClass

by Manoj Khangaonkar :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
 
Am a newbie at using JAM.
 
Javadoc says that getDeclaredFields should return all fields of the class but NOT the inherited fields.
 
 
My call is like
 
JField[] tempFields = javaType.getDeclaredFields() ;
 
where javaType is a JClass
 

I am seeing that this method does return inherited fields.

 
Is this a bug or do I need to be doing something different ?
 
I am using annogen 1.0 and jdk 15011.
 
thanks
 
Mj