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 "David L. Cole" <DL...@cmsenergy.com> on 2002/04/03 19:18:47 UTC

org.apache.axis.wsdl.fromJava.DefaultBuilderPortTypeClassRep bug

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