Reduce race condition opportunity

git-svn-id: svn://10.0.0.236/trunk@217090 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
szegedia%freemail.hu 2006-12-17 14:29:34 +00:00
parent 34a45a87f6
commit 20d2cd4e7f

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");