diff options
author | Brian S. O'Neill <bronee@gmail.com> | 2008-04-30 18:29:50 +0000 |
---|---|---|
committer | Brian S. O'Neill <bronee@gmail.com> | 2008-04-30 18:29:50 +0000 |
commit | 3837cc1a5459c978730c8fd00957f3690602a377 (patch) | |
tree | 9cd9883b6dde1cbd640b21846280fd212558580e /src/main/java/com/amazon/carbonado/repo | |
parent | b98349fd0cadf2f0c17dad9cbcf9fea312ec2684 (diff) |
Handle missing method from database open hook.
Diffstat (limited to 'src/main/java/com/amazon/carbonado/repo')
-rw-r--r-- | src/main/java/com/amazon/carbonado/repo/sleepycat/BDBRepository.java | 6 |
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;
}
|