summaryrefslogtreecommitdiff
path: root/connectivity/source/drivers/jdbc/Object.cxx
diff options
context:
space:
mode:
authorOcke Janssen <oj@openoffice.org>2001-08-14 06:21:03 +0000
committerOcke Janssen <oj@openoffice.org>2001-08-14 06:21:03 +0000
commit4d106c73767f5b7bfeca40bf58b9d95c2db75c27 (patch)
tree4b674e79a70fa293ce2acd0d855e8bcb174d2766 /connectivity/source/drivers/jdbc/Object.cxx
parent43328cf5983adec0f1d10eadafab0b8363a55210 (diff)
#90553# convert classname in jni conform way
Diffstat (limited to 'connectivity/source/drivers/jdbc/Object.cxx')
-rw-r--r--connectivity/source/drivers/jdbc/Object.cxx14
1 files changed, 12 insertions, 2 deletions
diff --git a/connectivity/source/drivers/jdbc/Object.cxx b/connectivity/source/drivers/jdbc/Object.cxx
index 594aa34920..c13bf4303e 100644
--- a/connectivity/source/drivers/jdbc/Object.cxx
+++ b/connectivity/source/drivers/jdbc/Object.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: Object.cxx,v $
*
- * $Revision: 1.8 $
+ * $Revision: 1.9 $
*
- * last change: $Author: oj $ $Date: 2001-07-06 08:37:18 $
+ * last change: $Author: oj $ $Date: 2001-08-14 07:21:03 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -194,15 +194,25 @@ int SDB_JRE_InitJava(const Reference<XMultiServiceFactory >& _rxFactory)
SDBThreadAttach::SDBThreadAttach() : bDetach(sal_False), pEnv(NULL)
{
attachThread(pEnv);
+ if(pEnv && pEnv->ExceptionOccurred())
+ pEnv->ExceptionClear();
}
SDBThreadAttach::SDBThreadAttach(const Reference<XMultiServiceFactory >& _rxFactory) : bDetach(sal_False), pEnv(NULL)
{
attachThread(pEnv,_rxFactory);
+ if(pEnv && pEnv->ExceptionOccurred())
+ pEnv->ExceptionClear();
}
SDBThreadAttach::~SDBThreadAttach()
{
+ if(pEnv && pEnv->ExceptionOccurred())
+ {
+ OSL_ENSURE(0,"Exception occured in JNI!");
+ pEnv->ExceptionClear();
+ }
+
detachThread();
}