axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vy Ho (JIRA)" <j...@apache.org>
Subject [jira] Created: (AXIS2-4640) WSDL2Java Generated Non-sensible Code
Date Mon, 01 Mar 2010 18:03:05 GMT
WSDL2Java Generated Non-sensible Code
-------------------------------------

                 Key: AXIS2-4640
                 URL: https://issues.apache.org/jira/browse/AXIS2-4640
             Project: Axis2
          Issue Type: Bug
          Components: kernel
    Affects Versions: 1.5.1
         Environment: OpenSuse 11.2, JDk 1.6.0
            Reporter: Vy Ho


Java classes that are generated from Web service Parameters (types) have non-sensible code
block (please excuse me for using the term).
These happens setter methods:

Take the following example generated code:

    public void setBarcode(java.lang.String param) {
        if (param != null) {
            //update the setting tracker
            localBarcodeTracker = true;
        } else {
            localBarcodeTracker = true;
        }
        this.localBarcode = param;
    }

localBarcodeTracker is always set to true in either case.  This either is a bug, or it's redundant
check.  This happens to every other property setters that I have seen so far.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


Mime
View raw message