commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 19376] - NoSuchMethodException: Unknown property 'aRa'
Date Mon, 28 Apr 2003 15:55:39 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19376>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19376

NoSuchMethodException: Unknown property 'aRa'

mohankishore@yahoo.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID



------- Additional Comments From mohankishore@yahoo.com  2003-04-28 15:55 -------
Seems valid according to JavaBeans Spec. Try using 'ARa' as property name, when 
the getter/setter are getARa/setARa. Extract from the spec:

8.8 Capitalization of inferred names.
When we use design patterns to infer a property or event name, we need to 
decide what rules to follow for capitalizing the inferred name. If we extract 
the name from the middle of a normal mixedCase style Java name then the name 
will, by default, begin with a capital letter.
Java programmers are accustomed to having normal identifiers start with lower 
case letters. Vigorous reviewer input has convinced us that we should follow 
this same conventional rule for property and event names.
JavaBeans Introspection
Thus when we extract a property or event name from the middle of an existing 
Java name, we normally convert the first character to lower case. However to 
support the occasional use of all upper-case names, we check if the first two 
characters of the name are both upper case and if so leave it alone. So for 
example,
“FooBah” becomes “fooBah”
“Z” becomes “z”
“URL” becomes “URL”
We provide a method Introspector.decapitalize which implements this conversion 
rule.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message