axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tom Jordahl <t...@macromedia.com>
Subject RE: org.apache.axis.wsdl.fromJava.DefaultBuilderPortTypeClassRep bug
Date Wed, 03 Apr 2002 20:35:23 GMT

Fixed.
Thanks David.

--
Tom Jordahl
Macromedia


-----Original Message-----
From: David L. Cole [mailto:DLCole@cmsenergy.com]
Sent: Wednesday, April 03, 2002 12:19 PM
To: axis-dev@xml.apache.org
Subject: 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

Mime
View raw message