[
https://issues.apache.org/jira/browse/FREEMARKER-177?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17290784#comment-17290784
]
Dániel Dékány commented on FREEMARKER-177:
------------------------------------------
Sorry, I was hasty and somehow believed that you deleted that method. Copying
properties is still not backward compatible though. I think, maybe just
returning it would be the best compromise. Then they can modify it, but that's
probably not problem practically.
So it was like that since forever. Great... Not sure if people didn't report
it, or it just was forgotten.
Why mark something deprecated. Because, it behaves in some confusing or
otherwise undesirable ways, so you don't want people building on it in new
code. Also when we break backward compatibility, the one who will be hurt is
often someone who only depends on a library that breaks because of a FreeMarker
upgrade (which was often unintended on the first place, like it's yet another
dependency whose upgrade transitively increased the FreeMarker version).
> freemarker Configurable has a asymmetric settings get/set which causes spring
> failure
> -------------------------------------------------------------------------------------
>
> Key: FREEMARKER-177
> URL: https://issues.apache.org/jira/browse/FREEMARKER-177
> Project: Apache Freemarker
> Issue Type: Bug
> Affects Versions: 2.3.29
> Reporter: Gray
> Priority: Major
> Attachments: trace.txt
>
>
> When I try to configure freemarker.template.Configuration in spring, it
> throws the exception:
> {{Caused by: org.springframework.beans.FatalBeanException: Failed to obtain
> BeanInfo for class [freemarker.template.Configuration]; nested exception is
> java.beans.IntrospectionException: type mismatch between read and write
> methods}}
> The problem is that setSettings(...) takes a Properties and getSettings()
> returns a Map. The get has been deprecated forever. Can it please be
> fixed? The alternative is having to do some spring hackery.
> See: [https://github.com/apache/freemarker/pull/74]
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)