jmeter-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 63065] Getting Typed variable declaration error after upgrading to jmeter 5.0
Date Wed, 09 Jan 2019 20:21:26 GMT
https://bz.apache.org/bugzilla/show_bug.cgi?id=63065

Philippe Mouawad <p.mouawad@ubik-ingenierie.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |NEW

--- Comment #22 from Philippe Mouawad <p.mouawad@ubik-ingenierie.com> ---
(In reply to Felix Schumacher from comment #21)
> Created attachment 36369 [details]
> Simple test plan to reproduce bug
> 
> It seems this is a regression in bsh-2.0b6.
> 
> The problem is the non-declaration of untyped variables inside block scope:
> 
> if (true) {
>   var1 = "some value";
> }
> vars.put("var", var1);
> 
> will reproduce the behaviour. If you replace the bsh-2.0b6.jar file in
> $JMETER_HOME/lib with bsh-2.0b5.jar, the test plan will work (even with
> JMeter version 5.1-nightly).
> 
> Even if this is a regression, I am not sure that JMeter can do anything
> about it.

Good catch Felix !

The new version of bsh contains a security fix, so it cannot be rollbacked.
Do you think it's worth reporting ? 
Beanshell is not actively maintained anymore.


@garun11, your best option is to move to JSR223+ Groovy which is the advised
way to since many versions.

-- 
You are receiving this mail because:
You are the assignee for the bug.
Mime
View raw message