← Prev in month ← Prev in thread
Next in thread → Next in month →

ISSUE-117: Clarify the name implied by setter method for property andreference names

From
David Booz <>
Date
2008-12-12T21:23:19+00:00
ID
Thread
ISSUE-117: Clarify the name implied by setter method for property andreference names
http://www.osoa.org/jira/browse/JAVA-117

Dave Booz

STSM, BPM and SCA Architecture

Co-Chair OASIS SCA-Policy TC and SCA-J TC

"Distributed objects first, then world hunger"

Poughkeepsie, NY (845)-435-6093  or  8-295-6093

e-mail:

C Vamsi ---12/12/2008 09:02:53 AM---TARGET: sca-javaci-draft-20070926.doc sca-javacaa-1.1-spec-cd01-rev1.pdf

From:

C Vamsi <>

To:



Date:

12/12/2008 09:02 AM

Subject:

[sca-j] NEW ISSUE: Clarify the name implied by setter method for property and reference names

TARGET: sca-javaci-draft-20070926.doc

sca-javacaa-1.1-spec-cd01-rev1.pdf

DESCRIPTION:

@Property and @Reference annotations without the name attribute applied on

setter methods require the property/reference name to be computed from the

method name.  In CAA and CI specs we mention "... name of the field or

setter".  What happens in the following case?

public class WeirdHello {

    @Property

    public void setPrefix(String prefix) {

    ...

    }

    @Property

    public void setprefix(String prefix) {

    ...

   }

    @Property

    public void setID(String id) {

    ...

   }

   ...

}

There is nothing syntactically wrong with this class.  What will be the

propery names in this case?  Will setID() method result in a property with

name ID or iD ?  Is it an error?  It is not clear and we need to make it

clear.

PROPOSAL: Clarify that the name implied by the setter method is the name

obtained by removing "set" from the method name.  For e.g. setID() will

result in "ID", setid() will result in "id" and setPrefix() will result in

"Prefix" not "prefix".

++Vamsi

Apache Tuscany Committer  http://tuscany.apache.org

Apache Geronimo Committer and Member of PMC  http://geronimo.apache.org

---------------------------------------------------------------------

To unsubscribe from this mail list, you must leave the OASIS TC that

generates this mail.  Follow this link to all your TCs in OASIS at:

https://www.oasis-open.org/apps/org/workgroup/portal/my_workgroups.php
← Prev in month ← Prev in thread
Next in thread → Next in month →