You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by du...@apache.org on 2001/08/01 18:30:44 UTC
cvs commit: xml-axis/java/samples/echo TestClient.java
dug 01/08/01 09:30:44
Modified: java/samples/echo TestClient.java
Log:
Fix a compilation error that seems to only show up on 1.2.2.
Revision Changes Path
1.21 +3 -3 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.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- TestClient.java 2001/07/29 16:03:01 1.20
+++ TestClient.java 2001/08/01 16:30:44 1.21
@@ -113,9 +113,9 @@
}
if (obj1 instanceof List)
- obj1 = JavaUtils.convert(obj1, new Object[]{}.getClass());
+ obj1 = JavaUtils.convert(obj1, (new Object[]{}).getClass());
if (obj2 instanceof List)
- obj2 = JavaUtils.convert(obj2, new Object[]{}.getClass());
+ obj2 = JavaUtils.convert(obj2, (new Object[]{}).getClass());
if (!obj2.getClass().isArray()) return false;
if (!obj1.getClass().isArray()) return false;
@@ -235,7 +235,7 @@
// set up tests so that the results are sent to System.out
TestClient client = new TestClient() {
public void verify(String method, Object sent, Object gotBack) {
- if (equals(sent, gotBack)) {
+ if (this.equals(sent, gotBack)) {
System.out.println(method + "\t OK");
} else {
System.out.println(method + "\t Fail: " + gotBack);