On 3/13/06, Meindert <[EMAIL PROTECTED]> wrote:
> Did look at your properties names? If the second letter is a capital then
> the first letter of the property is also a capital;

Almost - according to the spec and the JDK, if the second letter is a
capital then the name after "get" of "set" is *unchanged*:

getsTest() / setsTest = sTest
getITest() / setITest = ITest

Here is a handy snippet of code:

---
    public void testProperties() throws Exception {
        BeanInfo bi = Introspector.getBeanInfo(TestBean.class);
        PropertyDescriptor[] pd = bi.getPropertyDescriptors();
        for(int i=0; i < pd.length; i++){
            System.out.println(pd[i].getName());
        }
    }
---

Larry

Reply via email to