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
- From: David Booz <booz@us.ibm.com>
- To: sca-j@lists.oasis-open.org
- Date: Fri, 12 Dec 2008 16:23:06 -0500
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:booz@us.ibm.com
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 <vamsic007@in.ibm.com> |
To: |
sca-j@lists.oasis-open.org |
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
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
| [List Home]