summaryrefslogtreecommitdiff
path: root/stoc/source/javavm/javavm.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'stoc/source/javavm/javavm.cxx')
-rw-r--r--stoc/source/javavm/javavm.cxx11
1 files changed, 5 insertions, 6 deletions
diff --git a/stoc/source/javavm/javavm.cxx b/stoc/source/javavm/javavm.cxx
index 6b97a619b34a..0b9ad60dd358 100644
--- a/stoc/source/javavm/javavm.cxx
+++ b/stoc/source/javavm/javavm.cxx
@@ -643,7 +643,7 @@ extern "C" sal_Bool SAL_CALL component_writeInfo(void * pServiceManager,
}
catch (css::uno::Exception &)
{
- OSL_ENSURE(false, "com.sun.star.uno.Exception caught");
+ OSL_FAIL("com.sun.star.uno.Exception caught");
}
}
return false;
@@ -1421,7 +1421,7 @@ JavaVirtualMachine::~JavaVirtualMachine()
}
catch (css::uno::Exception &)
{
- OSL_ENSURE(false, "com.sun.star.uno.Exception caught");
+ OSL_FAIL("com.sun.star.uno.Exception caught");
}
if (m_xJavaConfiguration.is())
// We should never get here, but just in case...
@@ -1431,7 +1431,7 @@ JavaVirtualMachine::~JavaVirtualMachine()
}
catch (css::uno::Exception &)
{
- OSL_ENSURE(false, "com.sun.star.uno.Exception caught");
+ OSL_FAIL("com.sun.star.uno.Exception caught");
}
}
@@ -1658,12 +1658,11 @@ void JavaVirtualMachine::setINetSettingsInVM(bool set_reset)
}
catch (css::uno::RuntimeException &)
{
- OSL_ENSURE(false, "RuntimeException");
+ OSL_FAIL("RuntimeException");
}
catch (jvmaccess::VirtualMachine::AttachGuard::CreationException &)
{
- OSL_ENSURE(false,
- "jvmaccess::VirtualMachine::AttachGuard::CreationException");
+ OSL_FAIL("jvmaccess::VirtualMachine::AttachGuard::CreationException");
}
}