axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ru...@apache.org
Subject cvs commit: xml-axis/java/samples/echo TestClient.java
Date Sun, 08 Jul 2001 23:18:08 GMT
rubys       01/07/08 16:18:08

  Modified:    java/samples/echo TestClient.java
  Log:
  Better error detection and reporting
  
  Revision  Changes    Path
  1.14      +3 -1      xml-axis/java/samples/echo/TestClient.java
  
  Index: TestClient.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/samples/echo/TestClient.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- TestClient.java	2001/07/08 21:35:20	1.13
  +++ TestClient.java	2001/07/08 23:18:06	1.14
  @@ -89,7 +89,7 @@
        * verifies arrays are equal.
        */
       protected boolean equals(Object obj1, Object obj2) {
  -       if (obj1 == null) return (obj2 == null);
  +       if (obj1 == null || obj2 == null) return (obj1 == obj2);
          if (obj1.equals(obj2)) return true;
          if (!obj2.getClass().isArray()) return false;
          if (!obj1.getClass().isArray()) return false;
  @@ -201,6 +201,8 @@
                       System.out.println(method + "\t OK");
                   } else {
                       System.out.println(method + "\t Fail: " + gotBack);
  +                    if (gotBack instanceof Exception)
  +                        ((Exception)gotBack).printStackTrace();
                   }
               }
           };
  
  
  

Mime
View raw message