axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David L. Cole" <DLC...@cmsenergy.com>
Subject org.apache.axis.wsdl.fromJava.DefaultBuilderPortTypeClassRep bug
Date Wed, 03 Apr 2002 17:18:47 GMT
Hi all,

In the class:
 org.apache.axis.wsdl.fromJava.DefaultBuilderPortTypeClassRep

Line 142 of the getResolvedMethods() is attempting to compare to Strings
for equality
using the == operator:

                if (m1.getName() == m2.getName()) {

I think the intention was to perform the operation as follows:

     if(m1.getName().equals(m2.getName()){

Turned out to be an interesting bug...if using jdk1.3 the == will return
false,
but if using jdk1.4 it will always return true!
Is this a bug in jdk1.4...or a new feature?lol

Thanks,
David Cole


Mime
View raw message