xiaodududu / google-guice

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

com.google.inject.util.Providers#guicify() make original Provider injection points invisible #578

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Given the following implementation:

class MyProvider implements javax.inject.Provider<MyStuff> {

    @Inject MyCoolStuff ref;

    public MyProvider(String myMagicId) {
        //some magic here
    }

    // setters here

}

when invoking

    com.google.inject.util.Providers.guicify(new MyProvider("something here"))

the @Inject MyCoolStuff ref; injection point will be hidden

Original issue reported on code.google.com by simone.t...@gmail.com on 9 Dec 2010 at 10:04

GoogleCodeExporter commented 9 years ago
You had to wait till 3.0-rc1 to report this, didn't you. :-)

Original comment by sberlin on 9 Dec 2010 at 1:19

GoogleCodeExporter commented 9 years ago
fixed in r1453, thanks for reporting!

Original comment by sberlin on 9 Dec 2010 at 2:19

GoogleCodeExporter commented 9 years ago
super cool, thanks for taking care!

Original comment by simone.t...@gmail.com on 9 Dec 2010 at 2:25