velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From christoff.schm...@finaris.de
Subject Wrong evaluation results with velocity 1.6.2
Date Wed, 19 Sep 2012 11:31:42 GMT
Hi,

The evaluation of the following Velocity Template produces an invalid 
output:

#set($v = "a")
$v.charAt(0)a.xxx

I would expect aa.xxx as evaluation result, but velocity returns only aa - 
the dot and the xxx suffix are cut off.
If a whitespace is inserted before a.xxx, then the suffix is not cut off. 
But that solution is not possible for me.

Is this a known bug? Is there a fix or work-around for this?

Kind regards

Christoff Schmitz

=======================================================
Disclaimer
The information contained in this e - mail and any attachments
( together the "message") is intended for the addressee only and may 
contain confidential and/or privileged information. If you have received
the message by mistake please delete it and notify the sender and do
not copy or distribute it or disclose its contents to anyone.

FINARIS Financial Software Partner GmbH
Sömmerringstr. 23, 60322 Frankfurt/Main, Germany
Registered at Frankfurt/Main, HRB 52873

Managing Directors: 
Dipl. Inf. Hermann Friebel, Dipl. Ing. Kai Bächle, Dipl. Inf. Werner Märkl
=======================================================
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message