Skip to content

@CalledMethods doesn't distinguish between overloaded methods #10

@kelloggm

Description

@kelloggm

@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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions