I'm playing with the Guice 2.0 SPI in conjunction with Multibindings, and have discovered that an exception is thrown if duplicate elements end up getting inserted into the constructed Set. This happens for me because more than one binding leads to the same object instance, but I don't know that until the bindings are resolved to fulfill a dependency on the Set. This seems to be intentional, as the exception is only thrown as the result of a precondition check. Why not just let Set.add() collapse duplicates, and ignore its return value?
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "google-guice" 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?hl=en -~----------~----~----~----~------~----~------~--~---
