Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
1.3
-
None
-
None
-
Operating System: All
Platform: All
-
16266
Description
The BeanPropertySetter rule fails silently if the bean property named doesn't
exist. It should at the very least print a warning to the logging stream.
Perhaps it should throw a NoSuchMethod exception. I'm attaching an example of
the problem. The key section is:
Digester digester = new Digester();
digester.addObjectCreate( "Calendar", GregorianCalendar.class );
digester.addBeanPropertySetter( "Calendar/millis", "TimeInMillis" );
Note that the property name is "TimeInMillis" when it should correctly
be "timeInMillis". An easy mistake to make, but difficult for the novice
Digester user to track down.