diff --git a/CHANGELOG.md b/CHANGELOG.md index aab44083b50a4d0e1c2b4a7373a4bb8f4e52b48e..4d9c6a658df3111c300b130702ee98284dbcbbed 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## 1.4.1 +* Fixed exception handling when calling Java method OpenCLDevice.configure() to not hide exceptions + ## 1.4.0 * Fixed local arrays handling 1D and ND, to cope with arrays resizing across kernel executions diff --git a/src/cpp/JNIHelper.cpp b/src/cpp/JNIHelper.cpp index b7cd47bed9c28ed75327134004427db38c93b833..82e9eca2913e872682a689505646f07a46acc8f8 100644 --- a/src/cpp/JNIHelper.cpp +++ b/src/cpp/JNIHelper.cpp @@ -66,9 +66,6 @@ void JNIHelper::callVoidWithException(JNIEnv *jenv, jobject instance, const char throw std::string("bummer getting method '") + methodName + "', '()V' from instance"; jenv->CallVoidMethod(instance, methodId); - if (jenv->ExceptionCheck()) - throw std::string("bummer calling '") + methodName + "', '()V'"; - } catch(std::string& s) { jenv->ExceptionClear(); throw s;