google-code-export / google-guice

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

ProviderMethod has no InjectionPoints or Dependencies when Visited #286

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Steps to reproduce:

class MyModule extends AbstractModule() {
  protected void configure() {}

  @Provides
  Foo provideFoo(Bar bar) {
    ...
  }
}

...

injector.getBinding(Foo.class).acceptTargetVisitor(visitor);

What happens:

When visitor's visitProvider method is called, the set of InjectionPoints is 
empty.

What I expect:

An InjectionPoint that will let me get at the method's dependencies, in this 
case Bar.

(Ran into this when trying to graph method providers.)

Original issue reported on code.google.com by phopkins on 24 Dec 2008 at 3:25

GoogleCodeExporter commented 9 years ago
Fixed by r739.

Original comment by limpbizkit on 25 Dec 2008 at 4:35