Velocity Engine 2.5 RC1 ${foo.bar}

Greg Huber <[email protected]> Tue, 16 Jun 2026 08:29:24 +0100
Newsgroups gmane.comp.jakarta.velocity.devel
Message-ID <[email protected]>
--------------o8aqwMeLXoipJy1FwZjVJ4zl
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit

Hello,

Looking at the release notes:

  * Deprecation of some VTL syntax constructs: the formal reference
    notation |${...}| is now preferred for non-bare references (|$foo|
    is still fine, but |$foo.bar| should be rewritten as |${foo.bar}|).
    Deprecation warnings are off by default; the next minor release will
    turn them on by default, and the next major release will remove
    support for those deprecated forms.

I enabled runtime.deprecation.warn=true,  to see the warnings, there are 
hundreds :

2026-06-16 08:19:17,094 WARN  org.apache.velocity.rendering 
ASTReference:init - the informal notation '$utils.formatDate($utils.now, 
$text.get("date.toStringFormat"))' is deprecated in output; use the 
formal notation ${...} instead [line 634, column 21]

This is a very big change, adding ${} to 95% of our velocity statements.

Going forward > 2.5 is this change necessary or can it be ignored?

Cheers Greg

On 14/06/2026 18:06, Claude Brisson via dev wrote:
> The test build of Velocity Engine 2.5 RC1 is available.
>
> No determination as to the quality ('alpha,' 'beta,' or 'GA') of 
> Velocity Engine 2.5 has been made, and at this time it is simply a 
> "test build". We welcome any comments you may have, and will take all 
> feedback into account if a quality vote is called for this build.
>
> Release notes:
>
> * 
> https://dist.apache.org/repos/dist/dev/velocity/velocity-engine/2.5/release-notes.html
>
> Distribution:
>
>  * https://dist.apache.org/repos/dist/dev/velocity/velocity-engine/2.5/
>
> Maven 2 staging repository:
>
>  * 
> https://repository.apache.org/content/repositories/orgapachevelocity-1050/
>
> Documentation:
>
> * https://velocity.apache.org/engine/2.5/
>
> Sources:
>
>  * https://github.com/apache/velocity-engine/releases/tag/2.5-RC1
>
> A vote regarding the quality of this test build will be initiated 
> within the next couple of days.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
--------------o8aqwMeLXoipJy1FwZjVJ4zl--