Revert "lok: add pre-condition "DontEnableJava""
This reverts commit 8c5c6b8993
.
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>
This commit is contained in:
@@ -574,9 +574,6 @@ JavaVirtualMachine::getJavaVM(css::uno::Sequence< sal_Int8 > const & rProcessId)
|
|||||||
if (aId != aProcessId)
|
if (aId != aProcessId)
|
||||||
return css::uno::Any();
|
return css::uno::Any();
|
||||||
|
|
||||||
if (comphelper::IsContextFlagActive("DontEnableJava"))
|
|
||||||
return css::uno::Any();
|
|
||||||
|
|
||||||
std::unique_ptr<JavaInfo> info;
|
std::unique_ptr<JavaInfo> info;
|
||||||
while (!m_xVirtualMachine.is()) // retry until successful
|
while (!m_xVirtualMachine.is()) // retry until successful
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user