Menu

#1 Duplicating overloaded methods fails

v0.8.1
open-fixed
nobody
8
2006-01-26
2006-01-23
No

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.

Discussion

  • Thomas Roka-Aardal

    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.

     
  • Thomas Roka-Aardal

    • status: open --> open-fixed
     
  • Thomas Roka-Aardal

    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.

     

Log in to post a comment.

MongoDB Logo MongoDB