gpicron / google-gin

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

Error message for unbound keys with annotations are not always correct #170

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Get injected by 
'@MyNamed("somequalifier") String'
without any binding.

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

Current output:

 Error injecting @<package>.MyNamed java.lang.String: Unable to create or inherit binding: Binding requested for constant key '@<package>.MyNamed java.lang.String' but no explicit binding was found

Expected output to correctly pin the binding: 

 Error injecting @<package>.MyNamed(value="somequalifier") java.lang.String: Unable to create or inherit binding: Binding requested for constant key '@<package>.MyNamed(value="somequalifier") java.lang.String' but no explicit binding was found

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

Original issue reported on code.google.com by gok...@google.com on 17 Jan 2012 at 8:07

GoogleCodeExporter commented 9 years ago
Sent a patch for review:
http://codereview.appspot.com/5544086/

Original comment by gok...@google.com on 17 Jan 2012 at 8:16

GoogleCodeExporter commented 9 years ago
Fix committed in r235

Original comment by aragos on 21 Jan 2012 at 1:29