OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

sca-j message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

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


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

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


C Vamsi <vamsic007@in.ibm.com>




12/12/2008 09:02 AM


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

TARGET: sca-javaci-draft-20070926.doc

@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 {

   public void setPrefix(String prefix) {

   public void setprefix(String prefix) {

   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

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".

Apache Tuscany Committer  
Apache Geronimo Committer and Member of PMC  

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:

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]