Manual: Version history typos
Project: http://git-wip-us.apache.org/repos/asf/incubator-freemarker/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-freemarker/commit/f09918d2 Tree: http://git-wip-us.apache.org/repos/asf/incubator-freemarker/tree/f09918d2 Diff: http://git-wip-us.apache.org/repos/asf/incubator-freemarker/diff/f09918d2 Branch: refs/heads/2.3 Commit: f09918d28ebf20b2993920610e525ff5d848f565 Parents: 9af0b31 Author: ddekany <[email protected]> Authored: Sun Oct 15 21:29:37 2017 +0200 Committer: ddekany <[email protected]> Committed: Sun Oct 15 21:29:37 2017 +0200 ---------------------------------------------------------------------- src/manual/en_US/book.xml | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/f09918d2/src/manual/en_US/book.xml ---------------------------------------------------------------------- diff --git a/src/manual/en_US/book.xml b/src/manual/en_US/book.xml index 59ce86b..421a14a 100644 --- a/src/manual/en_US/book.xml +++ b/src/manual/en_US/book.xml @@ -27216,19 +27216,20 @@ TemplateModel x = env.getVariable("x"); // get variable x</programlisting> </listitem> <listitem> - <para>Bug fixed: <literal>BeansWrapper</literal> and - <literal>DefaultObjectWrapper</literal>, starting from Java 8, - when the same JavaBeans property has both non-indexed read - method (like <literal>String[] getFoos()</literal>) and indexed - read method (like <literal>String getFoos(int index)</literal>), - has mistakenly used the indexed read method to access the - property. This is a problem because then the array size was - unknown, and thus the property has suddenly become unlistable on - Java 8 (that is, <literal><#list myObject.foos as - foo></literal> fails). To enable the fix (where it will use - the non-indexed read method), you should to increase the value - of the <literal>incompatibleImprovements</literal> constructor - argument of the used <literal>DefaultObjectWrapper</literal> or + <para>Bug fixed: Starting from Java 8, when the same JavaBeans + property has both non-indexed read method (like + <literal>String[] getFoos()</literal>) and indexed read method + (like <literal>String getFoos(int index)</literal>), + <literal>BeansWrapper</literal> and + <literal>DefaultObjectWrapper</literal> have mistakenly used the + indexed read method to access the property. This is a problem + because then the array size was unknown, and thus the property + has suddenly become unlistable on Java 8 (that is, + <literal><#list myObject.foos as foo></literal> fails). To + enable the fix (where it will use the non-indexed read method), + you should increase the value of the + <literal>incompatibleImprovements</literal> constructor argument + of the used <literal>DefaultObjectWrapper</literal> or <literal>BeansWrapper</literal> to 2.3.27. Note that if you leave the <literal>object_wrapper</literal> setting of the <literal>Configuration</literal> on its default, it's enough to @@ -27257,7 +27258,7 @@ TemplateModel x = env.getVariable("x"); // get variable x</programlisting> <literal>IllegalAccessError</literal> because <quote>java.xml does not export com.sun.org.apache.xml.internal.utils</quote>. Note that while the exception is not thrown anymore in 2.3.27, - FreeMarker can't use the XPath support included in Open JDK 9, + FreeMarker can't use the XPath support included in OpenJDK 9, and so templates that try to use XPath expressions (like <literal>doc['//foo']</literal>) will still fail, <link linkend="xgui_imperative_learn_xpath">unless 3rd party XPath
