Craig R. McClanahan wrote:BeanUtils uses standard Java introspection to identify the getter and setter methods for properties, and those rules are defined in the JavaBeans specification. Therefore, the restriction applies to any Java code that wants to deal with JavaBeans properties.
That is not actually true if the data type is actually *boolean* (lower case "b"). In that scenario, it's perfectly legal to have the getter method start with "is" instead of "get". The following is a legal read-write property:
public boolean isStarted(); public void setStarted(boolean started);
The following is not:
public Boolean isStarted();
public void setStarted(Boolean started);
Thanks for the extra clarification.
Is the above a general rule on java or is it limited to BeanUtils?
http://java.sun.com/products/javabeans/docs/spec.html
ReinhardCraig
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
