Change behavior of method overriding if any methods in the call stack had @com.google.inject.Inject. The new behavior is..
* If subclass' method in question does not have any @Inject annotation, then:
- If any overridden methods contained @com.google.inect.Inject, the method is still injected.
- If the overriden methods only contained @javax.inject.Inject, the method is *not* injected, per the JSR spec.
This change reverts back to a Guice 1.0 & 2.0 behavior (preserving the existing fix so the injection point isn't called twice).
This is a functional difference between com.google.inject.Inject and javax.inject.Inject, but one we're willing to live with.
git-svn-id: https://google-guice.googlecode.com/svn/trunk@1176 d779f126-a31b-0410-b53b-1d3aecad763e
2 files changed