Skip to content

Using GinMapBinder with annotations produces Double-Bound exception #194

@GoogleCodeExporter

Description

@GoogleCodeExporter
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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions