633634635636637638639640641642643
FileLock lock; try { lockTable.add(position, size); lock = new FileLockImpl(this, position, size, shared); } catch (Error e) { lockTable.remove(position); ch.unlock(position, size);
663664665666667668669670671672673
throw new FileLockInterruptionException(); } try { lockTable.add(position, size); lock = new FileLockImpl(this, position, size, shared); } catch (Error e) { lockTable.remove(position); ch.unlock(position, size);