michaelwiles / google-gin

Automatically exported from code.google.com/p/google-gin
Apache License 2.0
0 stars 0 forks source link

GIN allows you to bind the same key twice #9

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a gin module that binds 
    bind(Foo.class).in(Singleton.class);
and
    bind(Foo.class).toProvider(FooProvider.class).in(Singleton.class);
2. there is no error or warning.

What is the expected output? What do you see instead?
Guice would error on this case and give you the name of the problem class key.

What version of the product are you using? On what operating system?
Working on Linux

Original issue reported on code.google.com by martinl...@gmail.com on 29 Oct 2008 at 12:13

GoogleCodeExporter commented 9 years ago
I wonder if we can fire up real Guice in the TOOL stage to validate modules at 
GWT 
compile time. This would save us a tremendous amount of effort in error 
checking. My 
guess is that we can; man that would be so awesome. Jesse, can you confirm that 
the 
TOOL stage would catch this kind of error?

Original comment by robbie.v...@gmail.com on 29 Oct 2008 at 12:29

GoogleCodeExporter commented 9 years ago
Robbie fixed this in r60.

Original comment by bstoler+code@google.com on 28 Dec 2008 at 12:44