summaryrefslogtreecommitdiff
path: root/stoc
diff options
context:
space:
mode:
authorHenry Castro <hcastro@collabora.com>2020-12-21 14:30:42 +0100
committerHenry Castro <hcastro@collabora.com>2020-12-21 14:35:10 +0100
commit8ccc28f8a72d0ac5a464418bde51ce6a1518c087 (patch)
tree25677aa1e1d38b4a661bbd54e68cb637571100ae /stoc
parentd7dfae214384f37901b532618e4d3ef117bd0285 (diff)
Revert "lok: add pre-condition "DontEnableJava""
This reverts commit 8c5c6b8993a52c40b9de231e778204bcdca16333. Reason for revert: "This is broken. For example, "Tools - Macros - Run Macro... - Library - LibreOffice Macros - HelloWorld" under "Macro Name" no longer lists the JVM-based scripts ("helloworld.bsh", "helloworld.js", "org.libreoffice.exmpale.java_scripts.HelloWorld.printHW")." Change-Id: I6fef6ea80689f036e79816c8d58d2c1f9e64967c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108007 Tested-by: Henry Castro <hcastro@collabora.com> Reviewed-by: Henry Castro <hcastro@collabora.com>
Diffstat (limited to 'stoc')
-rw-r--r--stoc/source/javavm/javavm.cxx3
1 files changed, 0 insertions, 3 deletions
diff --git a/stoc/source/javavm/javavm.cxx b/stoc/source/javavm/javavm.cxx
index ccb8ca232813..1b7a86e712ec 100644
--- a/stoc/source/javavm/javavm.cxx
+++ b/stoc/source/javavm/javavm.cxx
@@ -574,9 +574,6 @@ JavaVirtualMachine::getJavaVM(css::uno::Sequence< sal_Int8 > const & rProcessId)
if (aId != aProcessId)
return css::uno::Any();
- if (comphelper::IsContextFlagActive("DontEnableJava"))
- return css::uno::Any();
-
std::unique_ptr<JavaInfo> info;
while (!m_xVirtualMachine.is()) // retry until successful
{