[picocontainer-scm] [5759] java/2.x/trunk/pico/container/src/java/org/picocontainer/behaviors/HiddenImplementation.java: make implementation hiding even more thread safe

paul-yCVjj/[email protected] Sat, 26 Feb 2011 18:09:42 -0600 (CST)
Newsgroups gmane.comp.java.picocontainer.cvs
Message-ID <[email protected]>
Revision 5759
Author paul
Date 2011-02-26 18:09:42 -0600 (Sat, 26 Feb 2011)

Log Message

make implementation hiding even more thread safe

Modified Paths

- java/2.x/trunk/pico/container/src/java/org/picocontainer/behaviors/HiddenImplementation.java

Diff

Modified: java/2.x/trunk/pico/container/src/java/org/picocontainer/behaviors/HiddenImplementation.java (5758 => 5759)

--- java/2.x/trunk/pico/container/src/java/org/picocontainer/behaviors/HiddenImplementation.java 2011-02-27 00:07:07 UTC (rev 5758)
+++ java/2.x/trunk/pico/container/src/java/org/picocontainer/behaviors/HiddenImplementation.java 2011-02-27 00:09:42 UTC (rev 5759)
@@ -71,7 +71,7 @@
private Object instance;
public Object invoke(final Object proxy, final Method method, final Object[] args) throws Throwable {
if (instance == null) {
- synchronized (this) {
+ synchronized (HiddenImplementation.this) {
if (instance == null) {
instance = getDelegate().getComponentInstance(container, NOTHING.class);
}

----------

To unsubscribe from this list please visit:

http://xircles.codehaus.org/manage_email