Uploaded image for project: 'Commons Digester'
  1. Commons Digester
  2. DIGESTER-70

BeanPropertySetter fails silently when property doesn't exist

    XMLWordPrintableJSON

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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            kcbaltz@yahoo.com Kenneth Baltz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: