You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@jmeter.apache.org by bu...@apache.org on 2014/12/23 16:15:42 UTC

[Bug 57394] New: ClassTools#construct(String, int) ignores second parameter

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

            Bug ID: 57394
           Summary: ClassTools#construct(String, int) ignores second
                    parameter
           Product: JMeter
           Version: 2.12
          Hardware: All
                OS: All
            Status: NEW
          Severity: minor
          Priority: P2
         Component: Main
          Assignee: issues@jmeter.apache.org
          Reporter: felix.schumacher@internetallee.de

Created attachment 32326
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=32326&action=edit
use the int parameter for the constructor

In ClassTools#construct(String, int) the second parameter should be used for
constructing an object, but it is ignored.

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

[Bug 57394] ClassTools#construct(String, int) ignores second parameter

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=57394

Felix Schumacher <fe...@internetallee.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from Felix Schumacher <fe...@internetallee.de> ---
Date: Tue Dec 23 16:23:16 2014
New Revision: 1647607

URL: http://svn.apache.org/r1647607
Log:
Bug 57394: When constructing an instance using ClassTools#construct(String,
int),
the int parameter was not used, but the default constructor was used instead.

Added a few test cases to test the methods of ClassTools and correct the unused
parameter.

The only place in jmeter, where this method was called is in the JMeter class
itself and
is used, when the property "mirror.server.port" is set to a value greater than
zero. 
Without this patch that value would be ignored.

Bugzilla Id: 57394


Added:
    jmeter/trunk/test/src/org/apache/jorphan/reflect/TestClassTools.java
Modified:
    jmeter/trunk/src/jorphan/org/apache/jorphan/reflect/ClassTools.java
    jmeter/trunk/xdocs/changes.xml

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

[Bug 57394] ClassTools#construct(String, int) ignores second parameter

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=57394

Felix Schumacher <fe...@internetallee.de> changed:

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

--- Comment #1 from Felix Schumacher <fe...@internetallee.de> ---
Created attachment 32327
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=32327&action=edit
use the int parameter for the constructor and add test cases

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