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

--- Comment #3 from Sebb <[email protected]> 2012-01-16 21:22:46 UTC ---
For reference, here's how the methods were used in OldSaveService.java [1]

private static TestElement createTestElement(...){
    ...
    testClass = value of "class" attribute
    gui_class = value of guiClass property
    ...
    newClass = NameUpdater.getCurrentTestName(testClass,gui_class);
    element = (TestElement) Class.forName(newClass).newInstance();
...
}

The above method was used for creating all TestElement instances.

private static JMeterProperty createProperty(...){
    ...
        // Do upgrade translation:
        name = NameUpdater.getCurrentName(name, testClass);
        if (TestElement.GUI_CLASS.equals(name)) {
            value = NameUpdater.getCurrentName(value);
        } else if (TestElement.TEST_CLASS.equals(name)) {
            value=testClass; // must always agree
        } else {
            value = NameUpdater.getCurrentName(value, name, testClass);
        }

        // Delete any properties whose name converts to the empty string
        if (oname.length() != 0 && name.length()==0) {
            return null;
        }

        // Create the property:
    ...
}

The above method was used for creating all properties.

[1]
https://svn.apache.org/repos/asf/jmeter/tags/v2_3_4/src/core/org/apache/jmeter/save/OldSaveService.java

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

Reply via email to