I have the following lock method, but I cannot compile it because it says it must return a value long. Here is the code:
It calls the method isRecordValid to
test and see if the record in the cache is valid. If it is, it will return true, otherwise it will throw a RecordNotFoundException if the record is deleted or doesn't exist. However, the compiler says it must return a value....how can I fix this problem, because theoretically this code could execute and be at a spot where it is expecting some value to return. Maybe it's just late and I cannot think straight. Thanks for helping.
[ January 07, 2005: Message edited by: Daniel Simpson ]