The autogenerated class with no source code was not a hypothetical example. This was something I saw cause a problem in production, where the source code in the stack trace didn't exist.
But the DI frameworks I've used are typically just... normal code files. Uber/fx, Go/Guice, etc