You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I researched this problem and found that the reason is built-in binding for String.class.
String has empty constructor and binds in runtime by Guice to "" (empty string).
Nice find. Explicit only is probably a non-starter, because a lot of people rely on implicit just-in-time bindings for their @Inject annotated classes.
Special casing String to be explicit only makes sense, though. If you want to take a crack at it, I'd be happy to take a PR. Otherwise I'll probably get around to this in the next couple of weeks
After updating Guice-Extension to the new version, the parameterized tests broke down.
Error:
I researched this problem and found that the reason is built-in binding for String.class.
String has empty constructor and binds in runtime by Guice to "" (empty string).
See line 206:
adf2f4e#diff-5eef6748419687f2efdf650d6649f118
I suggest to add additional annotation with bindingModeParam(ALL,EXPLICIT_ONLY) to set binding mode and process it in
supportsParameter
method...or just make workaround with built-in binding String.class.
I would like to hear your opinion and suggestions on this issue.
The text was updated successfully, but these errors were encountered: