You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@freemarker.apache.org by dd...@apache.org on 2015/10/25 19:48:08 UTC

incubator-freemarker git commit: (Version history: Some missing entries under "Changes compared to 2.3.24 Preview 1")

Repository: incubator-freemarker
Updated Branches:
  refs/heads/2.3-gae a761e994c -> ef943b23f


(Version history: Some missing entries under "Changes compared to 2.3.24 Preview 1")


Project: http://git-wip-us.apache.org/repos/asf/incubator-freemarker/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-freemarker/commit/ef943b23
Tree: http://git-wip-us.apache.org/repos/asf/incubator-freemarker/tree/ef943b23
Diff: http://git-wip-us.apache.org/repos/asf/incubator-freemarker/diff/ef943b23

Branch: refs/heads/2.3-gae
Commit: ef943b23f89fd197039637549388513916a8db53
Parents: a761e99
Author: ddekany <dd...@apache.org>
Authored: Sun Oct 25 19:47:57 2015 +0100
Committer: ddekany <dd...@apache.org>
Committed: Sun Oct 25 19:47:57 2015 +0100

----------------------------------------------------------------------
 src/manual/book.xml | 87 +++++++++++++++++++++++++++++++++++++-----------
 1 file changed, 67 insertions(+), 20 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/ef943b23/src/manual/book.xml
----------------------------------------------------------------------
diff --git a/src/manual/book.xml b/src/manual/book.xml
index e461e94..cf47f7a 100644
--- a/src/manual/book.xml
+++ b/src/manual/book.xml
@@ -26237,26 +26237,6 @@ TemplateModel x = env.getVariable("x");  // get variable x</programlisting>
               <literal>String</literal>-s and
               <literal>Interpolation</literal>-s.</para>
             </listitem>
-
-            <listitem>
-              <para>Fixes and improvements in the <quote>object
-              builder</quote> syntax used for configuring FreeMarker from
-              <literal>java.util.Properties</literal> (or other string-only
-              sources). This is not to be confused with the template language
-              syntax, which has nothing to do with the <quote>object
-              builder</quote> syntax we are writing about here. The
-              improvements are:</para>
-
-              <itemizedlist>
-                <listitem>
-                  <para>Number literals can have Java type specified postfixes
-                  (<literal>f</literal>, <literal>d</literal>,
-                  <literal>l</literal>), plus <literal>bd</literal> for
-                  <literal>BigDecimal</literal> and <literal>bi</literal> for
-                  <literal>BigInteger</literal>.</para>
-                </listitem>
-              </itemizedlist>
-            </listitem>
           </itemizedlist>
         </section>
 
@@ -26393,6 +26373,73 @@ TemplateModel x = env.getVariable("x");  // get variable x</programlisting>
               returns <literal>true</literal> if the value is of type
               <quote>markup output</quote>.</para>
             </listitem>
+
+            <listitem>
+              <para>New <literal>FreemarkerServlet</literal> init-param:
+              <literal>OverrideResponseContentType</literal>. Specifies when
+              should we override the <literal>contentType</literal> that's
+              already set (i.e., non-<literal>null</literal>) in the
+              <literal>HttpServletResponse</literal>. Earlier, we have always
+              set it, and that's still the default behavior. But now that this
+              init-param exists, you can change that behavior, so that the
+              <literal>contentType</literal> you have specified before
+              forwarding to <literal>FreemarkerServlet</literal>
+              matters.</para>
+            </listitem>
+
+            <listitem>
+              <para>Bug fixed: It wasn't well defined when a Java
+              <literal>Iterator</literal> counts as empty. Depending on what
+              <literal>ObjectWrapper</literal> you are using, one of these
+              fixes apply:</para>
+
+              <itemizedlist>
+                <listitem>
+                  <para><literal>DefaultObjectWrapper</literal> (fix is always
+                  active): Operations on the <literal>Iterator</literal> that
+                  only check if it's empty without reading an element from it,
+                  such as <literal>?has_content</literal>, won't cause the a
+                  later iteration (or further emptiness check) to fail
+                  anymore. Earlier, in certain situations, the second
+                  operation has failed saying that the iterator <quote>can be
+                  listed only once</quote>.</para>
+                </listitem>
+
+                <listitem>
+                  <para><literal>BeansWrapper</literal> (when it's not
+                  extended by <literal>DefaultObjectWrapper</literal>), if
+                  it's <literal>incompatibleImprovements</literal> property is
+                  set to 2.3.24 (or higher): <literal>Iterator</literal>-s
+                  were always said to be non-empty when using
+                  <literal>?has_content</literal> and such (i.e., operators
+                  that check emptiness without reading any elements). Now an
+                  <literal>Iterator</literal> counts as empty exactly if it
+                  has no elements left. (Note that this bug has never affected
+                  basic functionality, like <literal>&lt;#list
+                  ...&gt;</literal>.)</para>
+                </listitem>
+              </itemizedlist>
+            </listitem>
+
+            <listitem>
+              <para>Fixes and improvements in the <quote>object
+              builder</quote> syntax used for configuring FreeMarker from
+              <literal>java.util.Properties</literal> (or other string-only
+              sources). This is not to be confused with the template language
+              syntax, which has nothing to do with the <quote>object
+              builder</quote> syntax we are writing about here. The
+              improvements are:</para>
+
+              <itemizedlist>
+                <listitem>
+                  <para>Number literals can have Java type specified postfixes
+                  (<literal>f</literal>, <literal>d</literal>,
+                  <literal>l</literal>), plus <literal>bd</literal> for
+                  <literal>BigDecimal</literal> and <literal>bi</literal> for
+                  <literal>BigInteger</literal>.</para>
+                </listitem>
+              </itemizedlist>
+            </listitem>
           </itemizedlist>
         </section>
       </section>