Hi,

I observe jackrabbit throw a RuntimeException when a shutdown is
interrupted.

I see in RepositoryImpl :

    public void shutdown() {
        try {
            shutdownLock.writeLock().acquire();
        } catch (InterruptedException e) {
            // TODO: Should this be a checked exception?
            throw new RuntimeException("Shutdown lock could not be
acquired", e);
        }


Perhaps best to rethrow an InterruptedException as in
http://download.oracle.com/javase/tutorial/essential/concurrency/interrupt.html?

Why do you throw a RuntimeException ?

Thanks.

Reply via email to