[jira] [Comment Edited] (FREEMARKER-92) Add Configuration.VERSION_LATEST
[ https://issues.apache.org/jira/browse/FREEMARKER-92?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16396558#comment-16396558 ] Daniel Dekany edited comment on FREEMARKER-92 at 3/13/18 5:28 AM: -- There's {{Configuration.getVersion()}} for that, but you should never use that to set the {{incompatible_improvements}}. New fixes and features are always enabled, except those that aren't fully backward compatible. If you are using {{Configuration.getVersion()}} as your {{incompatible_improvements}}, then you application can break when FreeMarker is updated. The whole point of this mechanism is that we can fix things that can in theory break existing applications, because using a fix value, like {{Configuration.VERSION_2_3_27}}, protects existing applications from such fixes, while future application can benefit from them. was (Author: ddekany): There's {{Configuration.getVersion()}} for that, but you should never use that to set the {{incompatible_improvements}}. New fixes and features are always enabled, except those that aren't fully backward compatible. If you are using {{Configuration.getVersion()}} as your {{incompatible_improvements}}, then you application can break when FreeMarker is updated. The whole point of this mechanism that we can still fix things that can in theory break existing applications, because using a fix value, like {{Configuration.VERSION_2_3_27}}, protects existing applications from such fixes. > Add Configuration.VERSION_LATEST > > > Key: FREEMARKER-92 > URL: https://issues.apache.org/jira/browse/FREEMARKER-92 > Project: Apache Freemarker > Issue Type: Improvement > Components: engine >Affects Versions: 2.3.27-incubating >Reporter: Yanming Zhou >Priority: Major > Fix For: 2.3.28-incubating > > > Most people would like use new features, please provide a constant point to > latest version. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Closed] (FREEMARKER-92) Add Configuration.VERSION_LATEST
[ https://issues.apache.org/jira/browse/FREEMARKER-92?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Daniel Dekany closed FREEMARKER-92. --- Resolution: Not A Problem > Add Configuration.VERSION_LATEST > > > Key: FREEMARKER-92 > URL: https://issues.apache.org/jira/browse/FREEMARKER-92 > Project: Apache Freemarker > Issue Type: Improvement > Components: engine >Affects Versions: 2.3.27-incubating >Reporter: Yanming Zhou >Priority: Major > Fix For: 2.3.28-incubating > > > Most people would like use new features, please provide a constant point to > latest version. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (FREEMARKER-92) Add Configuration.VERSION_LATEST
[ https://issues.apache.org/jira/browse/FREEMARKER-92?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16396558#comment-16396558 ] Daniel Dekany commented on FREEMARKER-92: - There's {{Configuration.getVersion()}} for that, but you should never use that to set the {{incompatible_improvements}}. New fixes and features are always enabled, except those that aren't fully backward compatible. If you are using {{Configuration.getVersion()}} as your {{incompatible_improvements}}, then you application can break when FreeMarker is updated. The whole point of this mechanism that we can still fix things that can in theory break existing applications, because using a fix value, like {{Configuration.VERSION_2_3_27}}, protects existing applications from such fixes. > Add Configuration.VERSION_LATEST > > > Key: FREEMARKER-92 > URL: https://issues.apache.org/jira/browse/FREEMARKER-92 > Project: Apache Freemarker > Issue Type: Improvement > Components: engine >Affects Versions: 2.3.27-incubating >Reporter: Yanming Zhou >Priority: Major > Fix For: 2.3.28-incubating > > > Most people would like use new features, please provide a constant point to > latest version. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Created] (FREEMARKER-92) Add Configuration.VERSION_LATEST
Yanming Zhou created FREEMARKER-92: -- Summary: Add Configuration.VERSION_LATEST Key: FREEMARKER-92 URL: https://issues.apache.org/jira/browse/FREEMARKER-92 Project: Apache Freemarker Issue Type: Improvement Components: engine Affects Versions: 2.3.27-incubating Reporter: Yanming Zhou Fix For: 2.3.28-incubating Most people would like use new features, please provide a constant point to latest version. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
incubator-freemarker git commit: Version history additions
Repository: incubator-freemarker Updated Branches: refs/heads/2.3-gae 0c77097aa -> 126161072 Version history additions Project: http://git-wip-us.apache.org/repos/asf/incubator-freemarker/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-freemarker/commit/12616107 Tree: http://git-wip-us.apache.org/repos/asf/incubator-freemarker/tree/12616107 Diff: http://git-wip-us.apache.org/repos/asf/incubator-freemarker/diff/12616107 Branch: refs/heads/2.3-gae Commit: 12616107209fd8d898c25efff8b7d5192a9f3c4e Parents: 0c77097 Author: ddekany Authored: Mon Mar 12 08:04:59 2018 +0100 Committer: ddekany Committed: Mon Mar 12 08:04:59 2018 +0100 -- src/manual/en_US/book.xml | 13 + 1 file changed, 13 insertions(+) -- http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/12616107/src/manual/en_US/book.xml -- diff --git a/src/manual/en_US/book.xml b/src/manual/en_US/book.xml index 4b89a2f..3bd2562 100644 --- a/src/manual/en_US/book.xml +++ b/src/manual/en_US/book.xml @@ -27531,6 +27531,14 @@ TemplateModel x = env.getVariable("x"); // get variable x + Avoided possible performance bottleneck when executing + templates on many threads, caused be that + java.beans.PropertyDescriptor.getReadMethod() + is synchronized (https://issues.apache.org/jira/browse/FREEMARKER-80";>FREEMARKER-80). + + + Added TemplateModelUtils.getKeyValuePairIterator(TemplateHashModelEx) static utility class, which can be used to get a @@ -27550,6 +27558,11 @@ TemplateModel x = env.getVariable("x"); // get variable x it unwraps into a LinkedHashMap instead of into a plain HashMap. + + + freemarker.ext.beans.HashAdapter.size() + was overridden for better performance. +