Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes self-loop when generated implementation of an assisted factory …
…method calls a generated component method with the same name. The problem exists in FastInit mode, where the private method name can conflict with the factory method name: ``` final class DaggerMyComponent implements MyComponent { @OverRide public FooFactory fooFactory() { return new FooFactory() { @OverRide public Foo foo() { return foo(); // This calls factory method rather than component method } }; } private Foo foo() { return new Foo(getDep()); } } ``` The fix is to reference outer component when calling the private method within the anonymous class. Fixes #2359 RELNOTES=Fixes #2359: Fixes self-loop when generated implementation of an assisted factory method calls a generated component method with the same name. PiperOrigin-RevId: 355887899
- Loading branch information