diff options
author | Kay Ramme <kr@openoffice.org> | 2001-08-06 12:28:47 +0000 |
---|---|---|
committer | Kay Ramme <kr@openoffice.org> | 2001-08-06 12:28:47 +0000 |
commit | 2e4b9409301aa26740991a7d86565bab27f4485d (patch) | |
tree | a9b7b4080da3962bf40ca90f74eef40dfbfdfeff /connectivity | |
parent | 8a8b576fce1f0c9d86d2d1f8a7aa93be4d3e20e4 (diff) |
clear exception (#9055#9
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/drivers/jdbc/Class.cxx | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/connectivity/source/drivers/jdbc/Class.cxx b/connectivity/source/drivers/jdbc/Class.cxx index 29f7169a8887..c01824d64c9b 100644 --- a/connectivity/source/drivers/jdbc/Class.cxx +++ b/connectivity/source/drivers/jdbc/Class.cxx @@ -2,9 +2,9 @@ * * $RCSfile: Class.cxx,v $ * - * $Revision: 1.5 $ + * $Revision: 1.6 $ * - * last change: $Author: oj $ $Date: 2001-05-31 08:29:15 $ + * last change: $Author: kr $ $Date: 2001-08-06 13:28:47 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -115,8 +115,13 @@ java_lang_Class * java_lang_Class::forName( const ::rtl::OUString& _par0 ) jmethodID mID = t.pEnv->GetStaticMethodID( getMyClass(), cMethodName, cSignature );OSL_ENSURE(mID,"Unknown method id!"); if( mID ){ out = t.pEnv->CallStaticObjectMethod( getMyClass(), mID, args[0].l ); + if(!out) + { + t.pEnv->ExceptionClear(); out = t.pEnv->FindClass(::rtl::OUStringToOString(_par0, RTL_TEXTENCODING_ASCII_US)); + } + ThrowSQLException(t.pEnv,0); // und aufraeumen } //mID |