Skip to content
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

Consider banning primitive types from wiring candidates #198

Open
adamw opened this issue Mar 22, 2022 · 0 comments
Open

Consider banning primitive types from wiring candidates #198

adamw opened this issue Mar 22, 2022 · 0 comments
Labels

Comments

@adamw
Copy link
Member

adamw commented Mar 22, 2022

Sometimes if you forget to add a dependency to autowire's parameters which needs manual creation you get errors such as a missing String dependency (if a String is needed to create said instance).

Maybe we should short-circuit even earlier, that is report an error any time someone tries to create an instance parametrised by any type from scala.*. Maybe the blacklist should also include java.lang.*, java.util.* and the like. What do you think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant