When a class or interface defines overloaded methods (methods with
different arguments, but with the same name), the duplication fails. This
needs fixing urgently, and a testcase for regression should be added.
The duplication does not take into account overloaded methods, it merely
attempts to create a setup_getStuff method for both getStuff() and getStuff
(String). This needs to be changed, not sure about how yet, and the attribute,
attribute length and exception state fields need to be renamed to reflect which
method they are keeping state for.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Fixed bug by using renamed methods in the duplicate class. Now the duplicate
classes have methods with argument hints in them, e.g. "getStuff_String_int()"
etc.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: YES
user_id=786958
The duplication does not take into account overloaded methods, it merely
attempts to create a setup_getStuff method for both getStuff() and getStuff
(String). This needs to be changed, not sure about how yet, and the attribute,
attribute length and exception state fields need to be renamed to reflect which
method they are keeping state for.
Logged In: YES
user_id=786958
Fixed bug by using renamed methods in the duplicate class. Now the duplicate
classes have methods with argument hints in them, e.g. "getStuff_String_int()"
etc.