diff options
author | Noel Grandin <noel@peralex.com> | 2012-09-03 09:26:06 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2012-09-05 21:01:45 +0200 |
commit | bf212ec14694e74b0e8e216df50026443f4ace23 (patch) | |
tree | 598ec8b3e3b4926736af5ef93b20548e1d2f489f /extensions | |
parent | 553a17f66540040a5ab21be71232fe736b353b65 (diff) |
Java cleanup, fix a couple of compile errors in old code
Change-Id: I5ceeaedb25ab8c9e6510e7fa88143670ae82703c
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/test/pgp/TestPGP.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/extensions/test/pgp/TestPGP.java b/extensions/test/pgp/TestPGP.java index bfb8b741703c..2fcffccf6d5c 100644 --- a/extensions/test/pgp/TestPGP.java +++ b/extensions/test/pgp/TestPGP.java @@ -47,7 +47,9 @@ import com.sun.star.text.XTextDocument; import com.sun.star.text.XTextRange; import com.sun.star.uno.IBridge; +import com.sun.star.uno.Type; import com.sun.star.uno.UnoRuntime; +import com.sun.star.uno.XCurrentContext; import com.sun.star.uno.XInterface; import com.sun.star.uno.XNamingService; import com.sun.star.container.*; @@ -121,7 +123,7 @@ public class TestPGP { String rootOid = "classic_uno"; IBridge iBridge = UnoRuntime.getBridgeByName("java", null, "remote", null, new Object[]{"iiop", xConnection, null}); - Object rInitialObject = iBridge.mapInterfaceFrom(rootOid, XInterface.class); + Object rInitialObject = iBridge.mapInterfaceFrom(rootOid, new Type(XInterface.class)); // Object rInitialObject = xBridge.getInstance("NamingService"); if(rInitialObject != null) { |