diff options
Diffstat (limited to 'stoc')
-rw-r--r-- | stoc/source/javavm/javavm.cxx | 7 | ||||
-rw-r--r-- | stoc/source/javavm/javavm.hxx | 2 |
2 files changed, 0 insertions, 9 deletions
diff --git a/stoc/source/javavm/javavm.cxx b/stoc/source/javavm/javavm.cxx index abf287f9c595..87196d5e9d63 100644 --- a/stoc/source/javavm/javavm.cxx +++ b/stoc/source/javavm/javavm.cxx @@ -557,7 +557,6 @@ JavaVirtualMachine::JavaVirtualMachine( m_xContext(rContext), m_bDisposed(false), m_pJavaVm(nullptr), - m_bDontCreateJvm(false), m_aAttachGuards(destroyAttachGuards) // TODO check for validity {} @@ -665,12 +664,6 @@ JavaVirtualMachine::getJavaVM(css::uno::Sequence< sal_Int8 > const & rProcessId) jfw::JavaInfoGuard info; while (!m_xVirtualMachine.is()) // retry until successful { - // This is the second attempt to create Java. m_bDontCreateJvm is - // set which means instantiating the JVM might crash. - if (m_bDontCreateJvm) - //throw css::uno::RuntimeException(); - return css::uno::Any(); - stoc_javavm::JVM aJvm; initVMConfiguration(&aJvm, m_xContext->getServiceManager(), m_xContext); diff --git a/stoc/source/javavm/javavm.hxx b/stoc/source/javavm/javavm.hxx index 8e354a8c1a35..f4ebabd48f7f 100644 --- a/stoc/source/javavm/javavm.hxx +++ b/stoc/source/javavm/javavm.hxx @@ -142,8 +142,6 @@ private: rtl::Reference< jvmaccess::VirtualMachine > m_xVirtualMachine; rtl::Reference< jvmaccess::UnoVirtualMachine > m_xUnoVirtualMachine; JavaVM * m_pJavaVm; - // stored as an instance member for backwards compatibility in getJavaVM - bool m_bDontCreateJvm; // If the first creation of Java failed and this flag is set then the // next call to getJavaVM throws a RuntimException. This is useful when // the second attempt to create Java might cause a crash. |