Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-8806

ExtendedBeanInfo raises 'type mismatch' error with covariant property types

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: None
    • Fix Version/s: 3.1 RC2
    • Component/s: None
    • Labels:
      None
    • Last commented by a User:
      true

      Description

      Transcribed by cbeams from Paul's original comment on SPR-8347

      I am experiencing an issue with ExtendedBeanInfo and covariante propertytypes i've yet to isolate a simple test but it appears to be due using JDK PropertyDescriptor and the long standing JDK bug that are the cause resulting in

      java.beans.IntrospectionException: type mismatch between read and write methods
      at java.beans.PropertyDescriptor.findPropertyType(PropertyDescriptor.java:603)
      at java.beans.PropertyDescriptor.setWriteMethod(PropertyDescriptor.java:270)
      at java.beans.PropertyDescriptor.<init>(PropertyDescriptor.java:117)
      at org.springframework.beans.ExtendedBeanInfo.addOrUpdatePropertyDescriptor(ExtendedBeanInfo.java:260)
      at org.springframework.beans.ExtendedBeanInfo.addOrUpdatePropertyDescriptor(ExtendedBeanInfo.java:178)
      at org.springframework.beans.ExtendedBeanInfo.<init>(ExtendedBeanInfo.java:95)
      at org.springframework.beans.CachedIntrospectionResults.<init>(CachedIntrospectionResults.java:224)
      ... 124 more

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                cbeams Chris Beams
                Reporter:
                cosmicpaul Paul Nardone
                Last updater:
                Chris Beams
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  5 years, 26 weeks, 6 days ago