jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ista Pouss <ista...@gmail.com>
Subject RuntimeException on interrupted shutdown
Date Tue, 16 Nov 2010 16:01:01 GMT
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.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message