Bug 62541 - Allow __Jexl3,__Jexl2 functions to support new syntax (var)
Summary: Allow __Jexl3,__Jexl2 functions to support new syntax (var)
Status: RESOLVED FIXED
Alias: None
Product: JMeter - Now in Github
Classification: Unclassified
Component: Main (show other bugs)
Version: 4.0
Hardware: All All
: P2 enhancement (vote)
Target Milestone: JMETER_5.0
Assignee: JMeter issues mailing list
URL:
Keywords: FixedInTrunk
Depends on:
Blocks:
 
Reported: 2018-07-16 06:31 UTC by orimarko
Modified: 2018-07-18 18:47 UTC (History)
2 users (show)



Attachments
Patch with using JexlScript over JexlExpression (2.75 KB, patch)
2018-07-16 06:35 UTC, orimarko
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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
Comment 3 The ASF infrastructure team 2022-09-24 20:38:14 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/4823