You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by bu...@apache.org on 2004/11/16 04:02:05 UTC
DO NOT REPLY [Bug 16087] -
String containing '##' is treated as unterminated String.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=16087>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=16087
claude@renegat.net changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|enhancement |normal
Priority| |P1
Version|1.2 |1.5
------- Additional Comments From claude@renegat.net 2004-11-16 04:02 -------
It is not a consistent behaviour.
Whether you interpolate ## and #* and *# INSIDE the double-quoted string (hence,
"##foo"==""), whether you don't interpolate comments inside strings at all. And
I strongly recomend the latter : that's the standard behaviour in all other
languages I know of.
Right now, with 1.5-dev, I've got:
[2004/11/16 03:05:10.405] Velocity [error] Error in interpolating string
literal : java.lang.StringIndexOutOfBoundsException: String index out of range: -1
with no information about the location and no stacktrace... (it seems like a new
bug appeared in the handling of the so-called lexical error)
I put it back as a bug rather than as an enhancement, at least because Velocity
should display something like "unterminated string at line...".
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-dev-help@jakarta.apache.org