Re: BeansWrapper.populateClassMapWithPropertyDescriptor failing to create property descriptors
Donnchadh Ó Donnabháin <[email protected]>
| Newsgroups | gmane.comp.web.freemarker.user |
|---|---|
| Message-ID | <CADe7t4gzGY3yiFej=xLK_6RQ3Q5S_qh15hLBgM+Q6y1VaT36uQ@mail.gmail.com> |
Hi John, Thanks for the info. The fix in 2.3.14 deals with the bridge methods generated by the compiler and takes into account that there may be multiple methods having the same signature. As it turns out the method in our case is an overriding method and not a synthetic method which is probably why we are still having this problem. In general, I think it would be nice to fall back to just using the getter method if the write method doesn't match rather than not exposing the property at all. Donnchadh On 15 November 2011 15:54, Newman, John W <[email protected]> wrote: > I have ran into this a few times myself. I still have the issue in our bug tracker back from 2008. It looks like the same block of code you posted. One complaint I had in there was that the NAME of the property isn't written into the log. It was very difficult to figure out exactly what introspection couldn't be performed. If I just had the name of the property in there, it would have been much easier to isolate the problem. I closed at as "fixed, with a patch in freemarker 2.3.14". > > Here's the thread I made http://freemarker.624813.n4.nabble.com/Beanswrapper-java-beans-IntrospectionException-type-mismatch-between-read-and-write-methods-td626427.html#none > Unfortunately the link from Attila in there is currently dead, but I found it here: http://freemarker.624813.n4.nabble.com/BeansWrapper-issue-with-quot-overlapping-quot-getters-td627804.html > > Take a look at those and let us know what you think. > > ------------------------------------------------------------------------------ RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 _______________________________________________ FreeMarker-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/freemarker-user