Status: New
Owner: ----

New issue 805 by [email protected]: Robot Legs PrivateModule leakage
http://code.google.com/p/google-guice/issues/detail?id=805

Description of the issue:

When using a PrivateModule (or PrivateBinding) to solve the robot legs problem, the private bindings used to construct a leg appear to leak into the other private bindings if one of the legs lack an binding annotation.

The attached example produces the following output:

left=RobotLegs$Leg@17a83597 foot=RobotLegs$Foot@245658a3 (righty)
right=RobotLegs$Leg@20d547f8 foot=RobotLegs$Foot@245658a3 (righty)

(Notice the legs have the same right foot).

If both legs are annotated, this works as expected:

left=RobotLegs$Leg@17a83597 foot=RobotLegs$Foot@245658a3 (lefty)
right=RobotLegs$Leg@20d547f8 foot=RobotLegs$Foot@1267fb9f (righty)

Steps to reproduce:

See attached.

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups 
"google-guice-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-guice-dev.
For more options, visit https://groups.google.com/d/optout.

Reply via email to