sca-j message
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
| [List Home]
Subject: NEW ISSUE: ComponentContext.getProperty(...) ill defined
- From: Mike Edwards <mike_edwards@uk.ibm.com>
- To: "OASIS Java" <sca-j@lists.oasis-open.org>
- Date: Wed, 10 Oct 2007 14:11:00 +0100
RAISER: Mike Edwards
TARGET: Description of ComponentContext.getProperty()
method in Java Common Annotations & APIs, Section 1.7.1
DESCRIPTION: ComponentContext.getProperty(...)
does not describe what should be returned in the following
circumstances:
Java class has a property identified
with a @Property annotation on a setter method, with a private field having
a
default value:
private String location ="RTP";
@Property
public void setLocation(String location) {
this.location = location;
} |
...and there is no corresponding getter
method for this property.
What value can/should getProperty(...)
return in these circumstances? There is no getter method so how does
it
know what the actual value is? It
may be the default (which cannot be seen externally) or it may be a value
supplied by SCA configuration.
PROPOSAL: None
Yours, Mike.
Strategist - Emerging Technologies, SCA & SDO.
Co Chair OASIS SCA Assembly TC.
IBM Hursley Park, Mail Point 146, Winchester, SO21 2JN, Great Britain.
Phone & FAX: +44-1962-818014 Mobile: +44-7802-467431
Email: mike_edwards@uk.ibm.com
Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number
741598.
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6
3AU
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
| [List Home]