Skip to content

Some matchers don't handle bare identifier names for functions #52

@cushon

Description

@cushon

Original issue created by mdempsky@google.com on 2012-11-02 at 12:22 AM


I'd expect a matcher like

staticMethod("Foo", "blah")

to match against:

import static Foo.blah;
class Bar {
  static void beep() {
    blah();
  }
}

but it doesn't.

Similarly, I'd expect

isDescendantOfMethod("Parent", "foo()")

to match against

class Child extends Parent {
  void honk() {
    foo();
  }
}

but it doesn't either.

Currently, both of these only rules reject non-JCFieldAccess/MemberSelectTree trees, whereas in the above two examples the MethodInvocationTree has an IdentifierTree as the method select expression instead of a MemberSelectTree.

(The above isn't meant to be exhaustive; there might be other rules that don't match correctly too.)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions