wocommunity / wolips

wolips
53 stars 53 forks source link

"Add key" does not generate correct java source code is second character of key is upper case [WOL-774] #30

Open timcu opened 12 years ago

timcu commented 12 years ago

This issue is WOL-774 from Jira. The behavior has changed since first described in Jira but is still wrong. I am describing the new wrong behavior below.

If my WOD file contains

MyString: WOTextField {
    value = aString;
}

and I cmd-click on "aString" to generate the java source code, I get the source code below. Note that the setter method should be "setAString" not "setaString". This problem only occurs if the second character of the key is upper case!

    private String _aString;

    /**
     * @return the aString
     */
    public String aString() {
        return _aString;
    }

    /**
     * @param aString the aString to set
     */
    public void setaString(String aString) {
        _aString = aString;
    }