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

[617 byte] By [ebrahim.faisala] at [2007-11-26 18:26:58]
# 1
you're already on the site
georgemca at 2007-7-9 6:01:04 > top of Java-index,Core,Core APIs...
# 2
> I suspect the error is because of the fact that the second letter of the variable is in "Caps".You suspect correctly. This appears to be an unfixable bug in the JavaBean specification and the only way to avoid it is to change the name of your property.
DrClapa at 2007-7-9 6:01:04 > top of Java-index,Core,Core APIs...