Summary: The case where the right hand side of the `Letderef` expression is an identifier was missing. With this diff, the following example is now working as expected: class A { public Object foo() { return new Object(); } } class B extends A { public Object foo() { return null; } } public class Test { static Object bar(A a) { return a.foo(); } static void shoulReport() { B b = new B(); bar(b).toString(); } } using the command: INFER_LAZY_DYNAMIC_DISPATCH=1 infer -- javac Test.java Reviewed By: sblackshear Differential Revision: D3238986 fb-gh-sync-id: d6059fb fbshipit-source-id: d6059fbmaster
parent
e96b94204c
commit
b3baf72df8
Loading…
Reference in new issue