[
https://issues.apache.org/jira/browse/VELOCITY-629?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Byron Foster updated VELOCITY-629:
----------------------------------
Attachment: fix629.patch
Here is a swipe at it, This patch goes through the tokens of the string
literal and adjusts column and line numbers.
> Error message for set directive reports wrong line number
> ---------------------------------------------------------
>
> Key: VELOCITY-629
> URL: https://issues.apache.org/jira/browse/VELOCITY-629
> Project: Velocity
> Issue Type: Bug
> Components: Engine
> Affects Versions: 1.6-beta1
> Reporter: Byron Foster
> Attachments: fix629.patch
>
>
> Given the following template:
> ##
> ##
> #set($list = [1])
> #set($x = "$list.get(1)")
> The MethodInvocationException that report this error reads:
> Invocation of method 'get' in class java.util.ArrayList threw exception
> java.lang.IndexOutOfBoundsException: Index: 1, Size: 1 at /foo.vm[line 1,
> column 7]
> Which contains an incorrect line number.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]