axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sam Ruby" <ru...@us.ibm.com>
Subject RE: cvs commit: xml-axis/java/samples/echo TestClient.java
Date Wed, 01 Aug 2001 17:37:59 GMT
Glen Daniels wrote:
>
>>   -                if (equals(sent, gotBack)) {
>>   +                if (this.equals(sent, gotBack)) {
>
> This one seems really weird...

Wierd, but apparently a limitation JDK 1.2.2:

samples:
    [javac] Compiling 1 source file to D:\jakarta\xml-axis\java\build\classes
    [javac] D:\jakarta\xml-axis\java\samples\echo\TestClient.java:238: Method 'equals' is
inherited in local class samples.echo.TestClient. 1, and
hides a method of the same name in class samples.echo.TestClient. An explicit 'this' qualifier
must be used to select the desired instance.
    [javac]                 if (equals(sent, gotBack)) {
    [javac]                           ^
    [javac] 1 error

- Sam Ruby


Mime
View raw message