From 3837cc1a5459c978730c8fd00957f3690602a377 Mon Sep 17 00:00:00 2001 From: "Brian S. O'Neill" Date: Wed, 30 Apr 2008 18:29:50 +0000 Subject: Handle missing method from database open hook. --- .../java/com/amazon/carbonado/repo/sleepycat/BDBRepository.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/main/java/com/amazon') 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 extends AbstractRepository return null; } if (mDatabaseHook != null) { - dbName = mDatabaseHook.databaseName(dbName); + try { + dbName = mDatabaseHook.databaseName(dbName); + } catch (IncompatibleClassChangeError e) { + // Method not implemented. + } } return dbName; } -- cgit v1.2.3