Hi,

I want use the isLocked() and checkLock() method from the Lock class
(slide 1.0.10).
But if the parameter from the isLocked() method tryToLock is false the
return value from the 
isLocked method is also false but the element is locked.
If the parameter tryToLock=true the result is true -> OK.
The method checkLock() use the method isLocked() with the parameter
tryToLock=false, so
the checkLock() also don't work.

Here my test code:

Date expirationDate = new Date((new Date()).getTime() + 10000000);
NodeLock nodeLock = new NodeLock("/test/test2", "/users/root",
"/actions/write", expirationDate, false);
lock.lock(slideToken, nodeLock);
System.out.println("/test/test2 isLocked=" + lock.isLocked(slideToken,
nodeLock, false));

--> the output is:

/test/test2 isLocked=false


What is the solution ? 


Martin

-- 
Martin S�nder <mailto:[EMAIL PROTECTED]>
Ponton Software Technology GmbH & Co. KG
Stresemannstrasse 163 * 22769 Hamburg - Germany
Fon: +49(40)43174-300 * Fax: +49(40)43174-399
http://www.ponton-software.de/

Reply via email to