Bug 62541

Summary: Allow __Jexl3,__Jexl2 functions to support new syntax (var)
Product: JMeter Reporter: orimarko <orimarko>
Component: MainAssignee: JMeter issues mailing list <issues>
Status: RESOLVED FIXED    
Severity: enhancement CC: orimarko, p.mouawad
Priority: P2 Keywords: FixedInTrunk
Version: 4.0   
Target Milestone: JMETER_5.0   
Hardware: All   
OS: All   
Attachments: Patch with using JexlScript over JexlExpression

Description orimarko 2018-07-16 06:31:48 UTC
Jexl3 Test failed to identify "var" syntax

Exception:
org.apache.commons.jexl3.JexlException$Parsing: @1:1 parsing error in 'var'

This is due to using JexlExpression instead of JexlScript see link below

https://issues.apache.org/jira/browse/JEXL-263?page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel&focusedCommentId=16544173#comment-16544173
Comment 1 orimarko 2018-07-16 06:35:50 UTC
Created attachment 36032 [details]
Patch with using JexlScript over JexlExpression
Comment 2 Philippe Mouawad 2018-07-18 18:47:41 UTC
Author: pmouawad
Date: Wed Jul 18 18:46:32 2018
New Revision: 1836220

URL: http://svn.apache.org/viewvc?rev=1836220&view=rev
Log:
Bug 62541: Allow __jexl3, __jexl2 function to support new syntax as 'var x;'.
Contributed by orimarko
Bugzilla Id: 62541

Modified:
    jmeter/trunk/src/functions/org/apache/jmeter/functions/Jexl2Function.java
    jmeter/trunk/src/functions/org/apache/jmeter/functions/Jexl3Function.java
    jmeter/trunk/test/src/org/apache/jmeter/functions/TestJexl2Function.java
    jmeter/trunk/xdocs/changes.xml