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

Soul Patch <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 OS|                            |All

--- Comment #1 from Soul Patch <[email protected]> ---
On Investigation it was found that when traversing the testTree in the
initRun() method in JMeterThread.java class the newly added Include Controller
is passed as a JMeterTreeNode instead of an IncludeController type.  

Following is the code flow : 
JMeterThread.run() --> JMeterThread.initRun() --> Traverses the testTree using
the HashTreeTraverser 'compiler'. --> HashTree.traverse() called where the
data.keySet() function returns all the keys. The definition of 'data'  says : 

****
// N.B. The keys can be either JMeterTreeNode or TestElement
    protected final Map<Object, HashTree> data;
****

TestCompiler.addNode() called which tries to cast the JMeterTreeNode received
to TestElement and a ClassCastException is thrown.

Need to investigate why the data.keySet returns a JMeterTreeNode. If it is
acceptable then a code should be in place to extract the TestElement from the
JMeterTreeNode to avoid the ClassCastException.

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

Reply via email to