[OS-JIRA] Created: (WOL-774) "Add Key" doesn't generate java source correctly if second character of key is upper case

From: D Tim Cummings (JIRA) ("D)
Date: Thu Apr 03 2008 - 18:59:26 EDT

  • Next message: Frédéric JECKER: "Re: Maven PlugIn"

    "Add Key" doesn't generate java source correctly if second character of key is upper case
    -----------------------------------------------------------------------------------------

                     Key: WOL-774
                     URL: http://issues.objectstyle.org/jira/browse/WOL-774
                 Project: WOProject/WOLips
              Issue Type: Bug
              Components: wolips
        Affects Versions: WOLips 3.3.2.* (nightly build please specify)
             Environment: Mac OS X 10.4.11
    WebObjects 5.3.3
    Java 1.5.0_07
    eclipse 3.3.2
    wolips 5073 (I think this problem has been with the "Add Key" feature since it was introduced.)
                Reporter: D Tim Cummings
                Priority: Minor

    Example: If you start in the .wod file with

    RepStringList: WORepetition {
        list = arrayStrings;
        item = aString;
    }

    and cmd-click on "aString" to add key to .java file, the following java source is created.

            private String string;
            /**
             *..eturn the string
             */
            public String aString() {
                    return string;
            }

            /**
             *..aram string the string to set
             */
            public void setString(String string) {
                    this.string = string;
            }
            
    This is incorrect. For WebObjects parser to use these methods, the second method should be

            public void setAString(String string) {
                    this.string = string;
            }

    It would also be more consistent with the source code generated when second character is not upper case if the instance variable was called "aString" rather than "string".

    -- 
    This message is automatically generated by JIRA.
    -
    If you think it was sent incorrectly contact one of the administrators: http://issues.objectstyle.org/jira/secure/Administrators.jspa
    -
    For more information on JIRA, see: http://www.atlassian.com/software/jira
    



    This archive was generated by hypermail 2.0.0 : Thu Apr 03 2008 - 19:00:39 EDT