Description
When used with constructor-autowired bean, it fails with "Resource class ... has no valid constructor" exception. We don't need constructor at all when we already have a singleton instance from Spring.
Also it looks like isSingleton() is called for the first time before correct value is calculated a few lines below: isSingleton = ac.isSingleton(beanId)