fmgasparino / google-gin

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

Display source context of double-bound keys #122

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Bind a key twice
2. Compile the program

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

The error message generated doesn't give any hint of where the two bindings 
took place.  e.g., a typical example looks like this:

[ERROR] Double-bound: Key[type=com.google.dburrows.client.SubInterface, 
annotation=[none]]. 
com.google.gwt.inject.rebind.binding.BindClassBinding@6a2ff0, 
com.google.gwt.inject.rebind.binding.BindClassBinding@a8d6b3

It would be much better if the source location of each binding was included in 
this error message, instead of making the user go hunt for the bindings.

Original issue reported on code.google.com by dburr...@google.com on 29 Oct 2010 at 10:10

GoogleCodeExporter commented 9 years ago
Code review URL: http://codereview.appspot.com/2785043

Original comment by dburr...@google.com on 29 Oct 2010 at 10:14

GoogleCodeExporter commented 9 years ago
Thanks for the contribution! Committed in r149, r150.

Original comment by aragos on 2 Nov 2010 at 8:50