summaryrefslogtreecommitdiff
path: root/testtools/com/sun/star/comp/bridge/TestComponent.java
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2003-10-06 11:58:23 +0000
committerVladimir Glazounov <vg@openoffice.org>2003-10-06 11:58:23 +0000
commitfdcec5f8d8a2013999f26d260a94ec14d3a39a1c (patch)
tree5dd21c21a5fafa8948782b0bb01f763018203db8 /testtools/com/sun/star/comp/bridge/TestComponent.java
parentdbd51b8c397f2bb6005f40150f0d21c4ad2c2402 (diff)
INTEGRATION: CWS unopkg (1.3.4); FILE MERGED
2003/09/26 13:10:54 dbo 1.3.4.1: #112449# using getCaughtException() as additional test for bridges: C++ throw;
Diffstat (limited to 'testtools/com/sun/star/comp/bridge/TestComponent.java')
-rw-r--r--testtools/com/sun/star/comp/bridge/TestComponent.java24
1 files changed, 20 insertions, 4 deletions
diff --git a/testtools/com/sun/star/comp/bridge/TestComponent.java b/testtools/com/sun/star/comp/bridge/TestComponent.java
index aab4e8b765e5..81d42b23fa9d 100644
--- a/testtools/com/sun/star/comp/bridge/TestComponent.java
+++ b/testtools/com/sun/star/comp/bridge/TestComponent.java
@@ -2,9 +2,9 @@
*
* $RCSfile: TestComponent.java,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: obo $ $Date: 2003-09-04 09:16:05 $
+ * last change: $Author: vg $ $Date: 2003-10-06 12:58:23 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -706,8 +706,24 @@ public class TestComponent {
throw new com.sun.star.uno.RuntimeException(rMsg, xContext);
}
- public int getRuntimeException() throws com.sun.star.uno.RuntimeException {
- throw new com.sun.star.uno.RuntimeException(_string, _xInterface);
+ private void dothrow( com.sun.star.uno.RuntimeException t )
+ throws com.sun.star.uno.RuntimeException
+ {
+ throw t;
+ }
+ public int getRuntimeException()
+ throws com.sun.star.uno.RuntimeException
+ {
+ try
+ {
+ dothrow( new com.sun.star.uno.RuntimeException(
+ _string, _xInterface ) );
+ return 0; // dummy
+ }
+ catch (com.sun.star.uno.RuntimeException t)
+ {
+ throw t;
+ }
}
public void setRuntimeException(int _runtimeexception) throws com.sun.star.uno.RuntimeException {