summaryrefslogtreecommitdiff
path: root/qadevOOo/runner
diff options
context:
space:
mode:
authorRüdiger Timm <rt@openoffice.org>2005-03-29 10:54:08 +0000
committerRüdiger Timm <rt@openoffice.org>2005-03-29 10:54:08 +0000
commit74c13162fdf4369e9e46e0876f2b2c1d1dceec8a (patch)
treecc88f17aa1b5d6ca72108537f03de1839d41351f /qadevOOo/runner
parent50f06d8428d2004b91211076c6ac856a354781e0 (diff)
INTEGRATION: CWS qadev22 (1.2.32); FILE MERGED
2005/03/17 13:12:01 sg 1.2.32.1: #i44053#CHG: removed java 131 incompatibilities
Diffstat (limited to 'qadevOOo/runner')
-rw-r--r--qadevOOo/runner/util/dbg.java22
1 files changed, 9 insertions, 13 deletions
diff --git a/qadevOOo/runner/util/dbg.java b/qadevOOo/runner/util/dbg.java
index a6f38604177d..3dd1d810abec 100644
--- a/qadevOOo/runner/util/dbg.java
+++ b/qadevOOo/runner/util/dbg.java
@@ -2,9 +2,9 @@
*
* $RCSfile: dbg.java,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change:$Date: 2004-07-23 10:43:59 $
+ * last change:$Date: 2005-03-29 11:54:08 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -71,10 +71,9 @@ import com.sun.star.beans.PropertyAttribute;
import com.sun.star.beans.PropertyValue;
import com.sun.star.lang.XTypeProvider;
import com.sun.star.lang.XServiceInfo;
-import com.sun.star.uno.ITypeDescription;
-import com.sun.star.uno.IMethodDescription;
import java.io.PrintWriter;
import java.io.OutputStream;
+import java.lang.reflect.Method;
/**
* This class accumulates all kinds of methods for accessing debug information
@@ -159,16 +158,13 @@ public class dbg {
* @param aType The type of the given interface.
* @see com.sun.star.uno.Type
*/
- public static void printInterfaceInfo (Type aType) {
+ public static void printInterfaceInfo(Type aType) {
try {
- ITypeDescription tDesc =
- (ITypeDescription)aType.getTypeDescription();
- int anz = tDesc.getMethodDescriptions().length;
- for (int i=0;i<anz;i++) {
- IMethodDescription mDesc = tDesc.getMethodDescriptions()[i];
- System.out.print("\t"+
- mDesc.getReturnSignature().getTypeName()+" ");
- System.out.println(mDesc.getName() + "()");
+ Class zClass = aType.getZClass();
+ Method[] methods = zClass.getDeclaredMethods();
+ for (int i=0; i<methods.length; i++) {
+ System.out.println("\t" + methods[i].getReturnType().getName()
+ + " " + methods[i].getName() + "()");
}
}
catch (Exception ex) {