Uploaded image for project: 'Commons BeanUtils'
  1. Commons BeanUtils
  2. BEANUTILS-542

"type mismatch between read and write methods" while using inheritance

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Blocker
    • Resolution: Unresolved
    • 1.9.4
    • None
    • Bean / Property Utils
    • BeanUtils 1.9.4

      JDK11

    Description

      After upgrading from 1.9.0 -> 1.9.4 as well as upgrading our JDK from 8 -> 11 we noticed some odd behavior differences. Before when copying properties all getters and setters were able to be created however now if a getter and setters type mismatch they do not get created even if one is a child class of the other. In our example we have the two methods public Fruit getFruit() and public void setFruit(Banana b). Banana extends Fruit making of type Fruit. However the instrospector cannot make this determination like it used to be able to. This is essential as we have a getter set up with the parent type within an abstract class. The child class of the abstract has a setter, but no getter.

      Attachments

        Activity

          People

            Unassigned Unassigned
            joeyf123 Joseph
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - 2m
                2m
                Remaining:
                Remaining Estimate - 2m
                2m
                Logged:
                Time Spent - Not Specified
                Not Specified