Open GoogleCodeExporter opened 9 years ago
Ohh awesome, this will total help with the flakiness in testing servlet
singletons.
Original comment by dha...@gmail.com
on 12 Jun 2009 at 5:52
Original comment by limpbizkit
on 23 Jun 2009 at 6:34
I noticed that Scopes.isSingleton returns false for exposed bindings that are
in fact
singleton. I don't imagine this is the desired result.
Adding this lines in Scopes#isSingleton solved the problem for me
public static boolean isSingleton(Binding<?> binding) {
// handle exposed bindings differently
if (binding instanceof ExposedBinding) {
ExposedBinding exposed = (ExposedBinding) binding;
// we are guaranteed to get the child injector and a non-exposed binding
return
isSingleton(exposed.getPrivateElements().getInjector().getBinding(binding.getKey
()));
}
....
}
Original comment by alen_vre...@yahoo.com
on 3 Oct 2009 at 6:56
Original issue reported on code.google.com by
limpbizkit
on 12 Jun 2009 at 5:27