fmgasparino / google-gin

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

GIN uses private constructor even if not annotated with @Inject #31

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. inject a class that has an unannotated no-args private constructor and a
public constructor with some arguments (which can not be injected)
2. don't create a binding for that class
3. compile

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

I expect a compile-time error.
Instead GIN happily uses the private no-args constructor and creates an
invalid object.

Original issue reported on code.google.com by k...@bolay.de on 6 Mar 2009 at 7:33

GoogleCodeExporter commented 9 years ago

Original comment by aragos on 6 Mar 2009 at 7:33

GoogleCodeExporter commented 9 years ago
Submitted patch for review: http://codereview.appspot.com/24080

Original comment by aragos on 8 Mar 2009 at 12:21

GoogleCodeExporter commented 9 years ago

Original comment by aragos on 17 Mar 2009 at 2:56