https://issues.apache.org/bugzilla/show_bug.cgi?id=56816

Sebb <[email protected]> changed:

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

--- Comment #3 from Sebb <[email protected]> ---
Thanks for the sample JMX.

The code is not Java either - it is BeanShell.
Java does not support void as a value, only as a return type qualifier.
Whereas BeanShell uses void to indicate a non-existent variable.

==

It's not yet clear why assigning null to the variable o should result in it
being void rather than null as expected.

It looks to be a side effect of using the JSR223 sampler rather than the
BeanShell sampler, as the same code works as expected in the BeanShell sampler,
and also works as expected in a Beanshell interpreter or console app.

It remains to be seen whether this is a feature or bug in the JSR223 BeanShell
support in JMeter or in BeanShell.

Meanwhile the workround is to use the BeanShell test elements to run BeanShell
code.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to