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


Eric Dalquist <[EMAIL PROTECTED]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #19281|0                           |1
        is obsolete|                            |




--- Comment #10 from Eric Dalquist <[EMAIL PROTECTED]>  2008-04-04 09:47:46 PST 
---
Created an attachment (id=21783)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=21783)
Add option to reset bsh.Interpreter on each iteration

This patch is a slightly different approach to the problem than the patch for
2.2. 

In BeanShellInterpreter the code that creates the new bsh.Interpreter instance
and that calls init(String, Logger) has been moved into a public reset()
method. This method is called by both constructors to retain the existing
behavior but gives clients of the class a way to re-created and re-init the
Interpreter.

All of the jMeter components that use the BeanShellInterpreter have been
updated to provide a per-component configuration option to reset the
interpreter on each iteration, this defaults to false.

All of the BeanShellBeanInfoSupport based UIs use a select box for the
true/false selection, the assertion and sampler GUIs use a checkbox. It seems
like a checkbox would be preferable for the BeanShellBeanInfoSupport based UIs
but I couldn't figure out an easy way to add a JCheckBox to them.

I did not update the BeanShell function as I'm not sure if that needs the
option as well, if you think it does let me know and I can add an option for a
reset call there as well.

The patch should be the absolute minimal diff based on 2.3.1, please let me
know if you have problems applying it or questions about the patch.

Thank you,
Eric


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to