Reduce race condition opportunity

This commit is contained in:
szegedia%freemail.hu 2006-12-17 14:29:34 +00:00
parent 6ee857d0b7
commit 33334aab54

View File

@ -55,7 +55,7 @@ public final class LazilyLoadedCtor {
this.ctorName = ctorName;
this.sealed = sealed;
if (getter == null) {
if (setter == null) {
Method[] methods = FunctionObject.getMethodList(getClass());
getter = FunctionObject.findSingleMethod(methods, "getProperty");
setter = FunctionObject.findSingleMethod(methods, "setProperty");