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

Using GinMapBinder with annotations produces Double-Bound exception #194

Open
GoogleCodeExporter opened this issue Mar 1, 2016 · 1 comment

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?


Add following binding to bind a Map:

GinMapBinder<String, String> optionsBinder = GinMapBinder
  .newMapBinder(binder(), String.class, String.class,
    Options.class);     optionsBinder.addBinding("scope").toProvider(LoginScopeProvider.class);



What is the expected output? What do you see instead?

[ERROR] Key @com.google.gwt.inject.client.multibindings.Internal 
java.lang.String is Double-bound: Bound at 
com.google.gwt.inject.client.multibindings.BindingRecorder.bindConstant(BindingR
ecorder.java:46) in 
com.google.gwt.inject.client.multibindings.BindingRecorder.BindingRegistererModu
le and 
com.google.gwt.inject.client.multibindings.BindingRecorder.bind(BindingRecorder.
java:42) in 
com.google.gwt.inject.client.multibindings.BindingRecorder.BindingRegistererModu
le


What version of the product are you using? On what operating system?
2.1.1


Original issue reported on code.google.com by ronny.bu...@gmail.com on 25 Oct 2013 at 3:00

@GoogleCodeExporter
Copy link
Author

I haven't tried you code but this basic code patch is already covered with test 
cases[1], so I suspect that your reproduce steps are incomplete. Can you find a 
minimal code snippet that reproduces the problem?

[1] 
https://code.google.com/p/google-gin/source/browse/trunk/test/com/google/gwt/inj
ect/client/multibindings/GinMapBinderTest.java#91

Original comment by gok...@google.com on 25 Oct 2013 at 3:38

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

No branches or pull requests

1 participant