You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
class A {
public <T> void foo(T value) {}
}
class B {
public void bar() {
new A().foo("string");
}
}
With a DescribedPredicate<JavaMethodCall> I can get a reference to the call to A.foo, but it appears that the JavaMethodCall object only contains type information defined in the method signature. Is there a way to get access to the type information at the call site? I.e. that we're passing a String to the method?
This is somewhat related to #721, but subtly different: I'm not looking to get the call value (which isn't generally statically available), but I'm looking for the call type (which is statically available).
The text was updated successfully, but these errors were encountered:
Consider:
With a
DescribedPredicate<JavaMethodCall>
I can get a reference to the call toA.foo
, but it appears that theJavaMethodCall
object only contains type information defined in the method signature. Is there a way to get access to the type information at the call site? I.e. that we're passing aString
to the method?This is somewhat related to #721, but subtly different: I'm not looking to get the call value (which isn't generally statically available), but I'm looking for the call type (which is statically available).
The text was updated successfully, but these errors were encountered: