Status: New
Owner: ----

New issue 403 by bslesinsky: getAllBindings() throws exception for servlet  
module
http://code.google.com/p/google-guice/issues/detail?id=403

Using snapshot 20090706

With this test:

   public void testGetAllServletBindings() throws Exception {
     Injector injector = Guice.createInjector(new ServletModule());
     injector.getAllBindings();
   }

I get an exception:

java.lang.IllegalArgumentException: duplicate key:
Key[type=com.google.inject.servlet.ManagedServletPipeline,  
annotation=[none]]
        at
com.google.inject.internal.ImmutableMap$RegularImmutableMap.<init>(ImmutableMap.java:591)
        at
com.google.inject.internal.ImmutableMap$RegularImmutableMap.<init>(ImmutableMap.java:559)
        at
com.google.inject.internal.ImmutableMap$Builder.fromEntryList(ImmutableMap.java:208)
        at
com.google.inject.internal.ImmutableMap$Builder.build(ImmutableMap.java:194)
        at
com.google.inject.internal.InjectorImpl.getAllBindings(InjectorImpl.java:634)
        at
com.google.projectdb.PdbServerTest.testGetAllServletBindings(PdbServerTest.java:42)

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"google-guice-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-guice-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to