summaryrefslogtreecommitdiff
path: root/src/main/java/com
diff options
context:
space:
mode:
authorBrian S. O'Neill <bronee@gmail.com>2008-04-30 18:29:50 +0000
committerBrian S. O'Neill <bronee@gmail.com>2008-04-30 18:29:50 +0000
commit3837cc1a5459c978730c8fd00957f3690602a377 (patch)
tree9cd9883b6dde1cbd640b21846280fd212558580e /src/main/java/com
parentb98349fd0cadf2f0c17dad9cbcf9fea312ec2684 (diff)
Handle missing method from database open hook.
Diffstat (limited to 'src/main/java/com')
-rw-r--r--src/main/java/com/amazon/carbonado/repo/sleepycat/BDBRepository.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/java/com/amazon/carbonado/repo/sleepycat/BDBRepository.java b/src/main/java/com/amazon/carbonado/repo/sleepycat/BDBRepository.java
index a56a91d..6fd9cc1 100644
--- a/src/main/java/com/amazon/carbonado/repo/sleepycat/BDBRepository.java
+++ b/src/main/java/com/amazon/carbonado/repo/sleepycat/BDBRepository.java
@@ -395,7 +395,11 @@ abstract class BDBRepository<Txn> extends AbstractRepository<Txn>
return null;
}
if (mDatabaseHook != null) {
- dbName = mDatabaseHook.databaseName(dbName);
+ try {
+ dbName = mDatabaseHook.databaseName(dbName);
+ } catch (IncompatibleClassChangeError e) {
+ // Method not implemented.
+ }
}
return dbName;
}