diff --git a/freemarker-manual/src/main/docgen/en_US/book.xml b/freemarker-manual/src/main/docgen/en_US/book.xml index 0b4c85ae9..6824a6a0e 100644 --- a/freemarker-manual/src/main/docgen/en_US/book.xml +++ b/freemarker-manual/src/main/docgen/en_US/book.xml @@ -10434,14 +10434,14 @@ cfg.setNumberFormat("@ua 0.####;; roundingMode=halfUp"); freemarker.template.Configuration object like: - ... = new Configuration(Configuration.VERSION_2_3_28) + ... = new Configuration(Configuration.VERSION_2_3_34) Or, alter the Configuration singleton where you initialize its other settings like: - cfg.setIncompatibleImprovements(Configuration.VERSION_2_3_28) + cfg.setIncompatibleImprovements(Configuration.VERSION_2_3_34) @@ -10449,7 +10449,7 @@ cfg.setNumberFormat("@ua 0.####;; roundingMode=halfUp"); (*.properties file or java.util.Properties object), add: - incompatible_improvements=2.3.28 + incompatible_improvements=2.3.34 @@ -10460,7 +10460,7 @@ cfg.setNumberFormat("@ua 0.####;; roundingMode=halfUp"); <init-param> <param-name>incompatible_improvements</param-name> - <param-value>2.3.28</param-value> + <param-value>2.3.34</param-value> </init-param> @@ -10497,7 +10497,7 @@ cfg.setNumberFormat("@ua 0.####;; roundingMode=halfUp"); Do not ever use Configuration.getVersion() to set the incompatible improvements setting. Always use a - fixed value, like Configuration.VERSION_2_3_28. + fixed value, like Configuration.VERSION_2_3_34. Otherwise your application can break as you upgrade FreeMarker. The whole point of incompatible improvements is to protect you from that, while you still always get the @@ -30458,7 +30458,7 @@ TemplateModel x = env.getVariable("x"); // get variable x
2.3.34 - Release date: TODO + Release date: 2024-12-01 + release process
Changes on the FTL side @@ -31556,8 +31556,8 @@ TemplateModel x = env.getVariable("x"); // get variable x This applies to said setting of Configuration, DefaultObjectWrapper, and - BeansWrapper. The typical bad pattern is - this: new + BeansWrapper. The typical + bad pattern is this: new Configuration(Configuration.getVersion()). Doing that defeats the purpose of incompatibleImprovements, and makes upgrading