any idea why this constructor hangs indefinitely? I'm trying to create a thread-safe singleton.
private RWLockedSingleton() {
lock.writeLock().lock();
System.out.println("we're done!");
isComplete = true;
lock.writeLock().unlock();
}
BTW, I realize it may be better to place the lock in the static getter; I'm just curious to know whether it's intrinsically wrong to use the lock in a constructor