-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UnsatisfiableDependenciesException with Components in Picocontainer after update to version 7.12.0 #2762
Comments
Can you provide a code sample please ? Edit: I could reproduce the issue by making the class
I'll fix the issue. |
Thanks for the fast reply. Sure, you can find a complete minimal example here: Otherwise, the relevant classes are: MyStepdefs.class
ComponentDependency.class
PojoDependency.class
Running with Cucumber JVM 7.12.0 this will result in the following exception:
|
@cfroh1 this issue is solved in cucumber 7.12.1 |
Awesome, thanks a lot! :) |
👓 What did you see?
Dependencies of classes treated by Picocontainer as components (e.g. by implementing the 'Disposable' interface) cannot be resolved in version 7.12.0. Class dependency hierarchies without components in them are no problem. If the component itself has no dependencies and is only injected, it works fine as well.
✅ What did you expect to see?
I expect a working constructor dependency injection as in version 7.11.2, which was independent whether a class is treated as component or not.
📦 Which tool/library version are you using?
Cucumber JVM 7.12.0
🔬 How could we reproduce it?
Steps to reproduce the behavior:
📚 Any additional context?
Probably caused by changes from #2724
The text was updated successfully, but these errors were encountered: