Closed GoogleCodeExporter closed 9 years ago
Upon further digging, the problem is narrow than I first thought. Basic
@Provides annotations do appear to work. What's broken seems to be indirect
bindings like the declaration above where the argument to the provides method
is also supplied by a provides method:
@Provides @Singleton GraphFactory provideGraphFactory()
{
return GWT.create(GraphFactoryImpl.class);
}
This also fails for transitive bindings like:
bind(Log.class).to(LoggerLog.class)
where the LoggerLog class is created by a provider method.
Original comment by snstan...@gmail.com
on 14 Feb 2012 at 12:06
which version are you using ?
I remember fixing a related issue :
http://code.google.com/p/gwt-test-utils/issues/detail?id=104
The fix is available on the lastest snapshots. Could you please give one of
them a try if not already done ?
Original comment by gael.laz...@gmail.com
on 14 Feb 2012 at 10:02
I'm using 0.36-SNAPSHOT from the trunk.
Original comment by snstan...@gmail.com
on 14 Feb 2012 at 4:37
I think the related issue was not specifically dealing with the @Provides
annotation.
Original comment by snstan...@gmail.com
on 15 Feb 2012 at 11:49
Did you need any additional info to reproduce this?
Original comment by snstan...@gmail.com
on 21 Feb 2012 at 7:04
No I think that's fine, I will fix this issue this weekend ;)
Original comment by gael.laz...@gmail.com
on 22 Feb 2012 at 5:32
Original comment by gael.laz...@gmail.com
on 12 Jun 2012 at 8:01
Month later, I finally manage to fix this issue. Modifications are available on
the lastest 0.39-SNAPSHOT. Could you please give it a try and post some
feedback here ?
Thank you very much ! I sincerly apologize for having taken so much time to
solve it..
Original comment by gael.laz...@gmail.com
on 12 Jun 2012 at 8:10
Original issue reported on code.google.com by
snstan...@gmail.com
on 13 Feb 2012 at 11:21