freemarker-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ddek...@apache.org
Subject [freemarker] branch 2.3-gae updated (1e16a4f -> a2ed41d)
Date Sat, 25 May 2019 23:02:14 GMT
This is an automated email from the ASF dual-hosted git repository.

ddekany pushed a change to branch 2.3-gae
in repository https://gitbox.apache.org/repos/asf/freemarker.git.


    from 1e16a4f  Adjustments to recently merged BeansWrapper.clearClassIntrospecitonCache
-> clearClassIntrospectionCache typo fix
     new 33d6e9a  exp[rangeExp] operator now supports lazily generated sequences as input.
For now it always gives lazily generated output in that case, but that's incorrect and will
change.
     new 1f25c8b  Generalized/simplified the way it's decided if an expression can produce
or consume lazily generated values.
     new a2ed41d  exp[rangeExp] now returns sequence or lazily generated sequence depending
on what the consumer supports. Also added size bypassing through exp[rangeExp] (like in seq?map(f)[10..]?size
no seq element will be consumed, as the size can be calculated without that).

The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../java/freemarker/core/BoundedRangeModel.java    |   2 +-
 src/main/java/freemarker/core/BuiltIn.java         |  13 +-
 .../freemarker/core/BuiltInsForMultipleTypes.java  |   2 +-
 .../java/freemarker/core/BuiltInsForSequences.java |  46 ++--
 src/main/java/freemarker/core/DynamicKeyName.java  | 244 ++++++++++++++++++---
 src/main/java/freemarker/core/Expression.java      |  18 ++
 src/main/java/freemarker/core/IteratorBlock.java   |  10 +-
 .../core/LazilyGeneratedSequenceModel.java         |   6 +-
 ...a => LazilyGeneratedSequenceModelWithSize.java} |  20 +-
 .../freemarker/core/ParentheticalExpression.java   |   7 +-
 src/main/java/freemarker/core/RangeModel.java      |   2 +-
 .../freemarker/core/RightUnboundedRangeModel.java  |   2 +-
 .../core/SingleIterationCollectionModel.java       |   2 +-
 src/main/java/freemarker/core/_CoreAPI.java        |   5 +-
 .../freemarker/template/utility/ClassUtil.java     |   3 +-
 src/main/resources/freemarker/included.html        |   9 +
 ...iltinsTest.java => LazilyGeneratedSeqTest.java} |  73 +++++-
 .../test/templatesuite/templates/range-lazy.ftl    |  58 +++++
 .../freemarker/test/templatesuite/testcases.xml    |   5 +-
 19 files changed, 427 insertions(+), 100 deletions(-)
 copy src/main/java/freemarker/core/{NonListableRightUnboundedRangeModel.java => LazilyGeneratedSequenceModelWithSize.java}
(67%)
 create mode 100644 src/main/resources/freemarker/included.html
 rename src/test/java/freemarker/core/{LazilyGeneratedSeqTargetSupportInBuiltinsTest.java
=> LazilyGeneratedSeqTest.java} (67%)
 create mode 100644 src/test/resources/freemarker/test/templatesuite/templates/range-lazy.ftl


Mime
View raw message