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

@CalledMethods doesn't distinguish between overloaded methods #10

Open
kelloggm opened this issue May 6, 2019 · 0 comments
Open

@CalledMethods doesn't distinguish between overloaded methods #10

kelloggm opened this issue May 6, 2019 · 0 comments

Comments

@kelloggm
Copy link
Owner

kelloggm commented May 6, 2019

@CalledMethods annotations currently bucket overloaded methods. So, for example, if we had this class:

class OverloadingExample {
    void a();
    void a(Object foo);
}

then these two sequences of method calls would result in an object with the same type (@CalledMethods({"a"})):

OverloadingExample o1 = new OverloadingExample().a();
OverloadingExample o2 = new OverloadingExample().a(null);

We haven't seen an instance where this distinction is important yet, but it is a limitation of the current type system.

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