Remove odd catch of ArrayStoreException

...(which is a RuntimeException) around a call of
com.sun.star.script.framework.provider.ClassLoaderFactory.getURLClassLoader.
The catch block was introduced in 3076ea9dc6
"INTEGRATION: CWS scriptingf2 (1.2.2); FILE MERGED", for no apparent reason.  It
was introduced along with catch blocks for MalformedURLException and
NoSuitableClassLoaderException, but which have already been removed with
616b3ad504 "java: remove exceptions from throws
clauses that are not".

Change-Id: I8d2890aed1b0f50fe817002cb6f1610c550568f1
Reviewed-on: https://gerrit.libreoffice.org/77140
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
This commit is contained in:
Stephan Bergmann
2019-08-08 10:21:31 +02:00
parent 94d78b5a4b
commit c4bb20a479
@@ -182,25 +182,12 @@ class ScriptImpl implements XScript {
ScriptDescriptor scriptDesc =
new ScriptDescriptor(metaData.getLanguageName());
ClassLoader scriptLoader = null;
LogUtils.DEBUG("Classloader starting...");
try {
LogUtils.DEBUG("Classloader starting...");
ClassLoader scriptLoader =
ClassLoaderFactory.getURLClassLoader(metaData);
scriptLoader =
ClassLoaderFactory.getURLClassLoader(metaData);
LogUtils.DEBUG("Classloader finished...");
} catch (ArrayStoreException e) {
// Framework error
ScriptFrameworkErrorException e2 =
new ScriptFrameworkErrorException(
e.toString(), null,
metaData.getLanguageName(), metaData.getLanguage(),
ScriptFrameworkErrorType.UNKNOWN);
e2.initCause(e);
throw e2;
}
LogUtils.DEBUG("Classloader finished...");
ArrayList<Object> invocationArgList = new ArrayList<Object>();
Object[] invocationArgs = null;