Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VerveineJ should create parameters for methods with different signatures #746

Closed
seandenigris opened this issue Aug 3, 2015 · 4 comments

Comments

@seandenigris
Copy link
Contributor

Originally reported on Google Code with ID 746

In some cases, calls to external libraries get reified as methods with proper signatures,
but without parameters.

I am trying to reproduce this using the following example (in ad_hoc/MultipleSignatures.java):

package ad_hoc;

import java.io.PrintWriter;
import java.io.StringWriter;

public class MultipleSignatures {

    public void callToRegularPrintStackTrace(Throwable t) {
        t.printStackTrace()
    }

    public void callToPrintStackTraceWithParam(Throwable t) {
        t.printStackTrace(new PrintWriter(new StringWriter()))
    }
}

I encountered a similar code in a case study. However, in this case, I cannot even
get the parser to recognize both printStackTrace calls.

Reported by tudor@tudorgirba.com on 2011-11-09 06:28:02

@seandenigris
Copy link
Contributor Author

Reported by tudor.girba on 2012-02-11 09:47:48

  • Labels added: Milestone-4.7
  • Labels removed: Milestone-4.6

@seandenigris
Copy link
Contributor Author

I guess this will not be ready for 4.7, right?

Reported by tudor@tudorgirba.com on 2012-11-24 23:28:04

  • Labels removed: Milestone-4.7

@seandenigris
Copy link
Contributor Author

I ran VerveineJ on the code example you gave.
First one needs to add ";" at the end of the 2 printStackTrace(...)

This done, 2 stub FAMIX.Methods are created, with the right signature ...

So I could not reproduce the problem with this example

Reported by anquetil.nicolas on 2012-11-26 18:53:22

@seandenigris
Copy link
Contributor Author

Thanks a lot for looking into this.

Strange. I will check again in some other case studies and reopen it if I manage to
spot the issue again.

Reported by tudor@tudorgirba.com on 2012-11-26 20:17:21

  • Status changed: Invalid

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant