You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to google...@googlegroups.com
There are four modules A, B, C, D.
Their dependency is like graph below
A D
| \ /
| B
| /
C
Could I install C & B in A and then install C in B again?
The experiment would just work, but I failed to find any doc supporting this.
Thanks.
Thomas Broyer
unread,
Sep 9, 2014, 4:55:31 AM9/9/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to google...@googlegroups.com
IIRC, the modules need to compare equal (i.e. C.equals(C) == true), otherwise C would be installed twice and lead to duplicate bindings.
Not sure there's any doc, but I remember fixing something similar in GIN (Guice for/in GWT) a while ago.
Tavian Barnes
unread,
Sep 11, 2014, 5:31:56 PM9/11/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to google...@googlegroups.com
This is true, but brittle to rely on (anything using the SPI like Modules.override() will break equality). It's better to rely on the fact that equivalent bindings get de-duplicated.
The one caveat is that to get @Provides methods to de-duplicate, the modules have to compare equal anyway.
Andrés Testi
unread,
Sep 23, 2014, 10:03:33 AM9/23/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message