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.)
Original issue created by mdempsky@google.com on 2012-11-02 at 12:22 AM
I'd expect a matcher like
to match against:
but it doesn't.
Similarly, I'd expect
to match against
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.)