diff --git a/extensions/testlib/src/com/google/inject/testing/fieldbinder/BoundFieldModule.java b/extensions/testlib/src/com/google/inject/testing/fieldbinder/BoundFieldModule.java index b1eef16a6f..abaeb331db 100644 --- a/extensions/testlib/src/com/google/inject/testing/fieldbinder/BoundFieldModule.java +++ b/extensions/testlib/src/com/google/inject/testing/fieldbinder/BoundFieldModule.java @@ -387,6 +387,10 @@ private static boolean hasInject(Field field) { /** * Determines if {@code clazz} is a "transparent provider". * + *

If you have traced through the code and found that what you want to do is failing because of + * this check, try using {@code @Bind(lazy=true) MyType myField} and lazily assign myField + * instead. + * *

A transparent provider is a {@link com.google.inject.Provider} or {@link * javax.inject.Provider} which binds to it's parameterized type when used as the argument to * {@link Binder#bind}.