forked from amazingfate/loongoffice
Keep null service manager throw a DeploymentException
...rather than a general RuntimeException, for consistency with existing service ctor code. Change-Id: Ia9ac14a1b5bcecb24394e7b9cade369f3f9303f0
This commit is contained in:
@ -19,6 +19,7 @@
|
||||
package test.codemaker.javamaker.java15;
|
||||
|
||||
import com.sun.star.lang.XMultiComponentFactory;
|
||||
import com.sun.star.uno.DeploymentException;
|
||||
import com.sun.star.uno.XComponentContext;
|
||||
import complexlib.ComplexTestCase;
|
||||
|
||||
@ -68,18 +69,18 @@ public final class Test extends ComplexTestCase {
|
||||
}
|
||||
|
||||
public XMultiComponentFactory getServiceManager() {
|
||||
throw new com.sun.star.uno.RuntimeException();
|
||||
throw new DeploymentException();
|
||||
}
|
||||
};
|
||||
try {
|
||||
Service.create(context);
|
||||
failed();
|
||||
} catch (com.sun.star.uno.RuntimeException e) {}
|
||||
} catch (DeploymentException e) {}
|
||||
try {
|
||||
Service.create(
|
||||
context, false, (byte) 1, (short) 2, Integer.valueOf(4));
|
||||
failed();
|
||||
} catch (com.sun.star.uno.RuntimeException e) {}
|
||||
} catch (DeploymentException e) {}
|
||||
}
|
||||
|
||||
private static final class Ifc implements XIfc {
|
||||
|
||||
Reference in New Issue
Block a user