Java reflection & Java Bean
Hi
Can someone guide me to a site where I can read SUN specification/rules about declaring a property in a POJO. I am asking this because I am facing the below problem
I've an instance variable names as "xPos", so it's getter/setter are like getXPos() and setXPos(String pos). When I try to get the Field object for the variable xPos, I am getting NoSuchFieldException. I suspect the error is because of the fact that the second letter of the variable is in "Caps".
//following throws NoSuchFieldException
field = inspectionClass.getDeclaredField("xPos");
Regards
E.Faisal

