Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.1.5-SNAPSHOT
-
None
-
None
Description
my managed bean was lacking a setter for a property. Due to a non-descriptive error message I was unable to identify the source of the problem. After debugging, this code block was identified that lacks a descriptive error message.
Error message was:
Bean: com.somedomain.Controller, property: alertDiffResult Bean: com.somedomain.Controller, property: alertDiffResult
Error message should be:
Bean: com.somedomain.Controller, property: alertDiffResult Bean: com.somedomain.Controller, property: alertDiffResult (no write method for property)
suggested patch:
public static void setProperty(Object base, String name, Object newValue)
{
PropertyDescriptor propertyDescriptor =
getPropertyDescriptor(base, name);
Method m = propertyDescriptor.getWriteMethod();
if (m == null)
...