summaryrefslogtreecommitdiff
path: root/jvmaccess/source
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2011-03-12 11:49:53 +0100
committerThomas Arnhold <thomas@arnhold.org>2011-03-12 14:19:48 +0100
commit6488e5f1207eb3f72e00cd1e2ada2e443c891373 (patch)
tree4e4424bf1aa525f86cf48ff5a0c1044cab0efaff /jvmaccess/source
parent7769f9dbd4613a147a60d76e2df9fedd0f11289f (diff)
Move OSL_ENSURE(false,...) to OSL_FAIL(...)
Diffstat (limited to 'jvmaccess/source')
-rw-r--r--jvmaccess/source/virtualmachine.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/jvmaccess/source/virtualmachine.cxx b/jvmaccess/source/virtualmachine.cxx
index 9597eed2e8aa..a257f55224cd 100644
--- a/jvmaccess/source/virtualmachine.cxx
+++ b/jvmaccess/source/virtualmachine.cxx
@@ -100,7 +100,7 @@ JNIEnv * VirtualMachine::attachThread(bool * pAttached) const
JNIEnv * pEnv;
jint n = m_pVm->GetEnv(reinterpret_cast< void ** >(&pEnv), m_nVersion);
if (n != JNI_OK && n != JNI_EDETACHED) {
- OSL_ENSURE(false, "JNI: GetEnv failed");
+ OSL_FAIL("JNI: GetEnv failed");
}
if (pEnv == 0)
{
@@ -119,7 +119,7 @@ void VirtualMachine::detachThread() const
{
#ifdef SOLAR_JAVA
if (m_pVm->DetachCurrentThread() != JNI_OK) {
- OSL_ENSURE(false, "JNI: DetachCurrentThread failed");
+ OSL_FAIL("JNI: DetachCurrentThread failed");
}
#endif
}