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 "Ajith Harshana Ranabahu (JIRA)" <ji...@apache.org> on 2006/07/25 12:45:14 UTC

[jira] Resolved: (AXIS2-736) [ADB] Feedback from Wendy's POC

     [ http://issues.apache.org/jira/browse/AXIS2-736?page=all ]

Ajith Harshana Ranabahu resolved AXIS2-736.
-------------------------------------------

    Resolution: Fixed

The only valid problem in this is #1
I've changed the template to generate the method signature in proper camel case and also changed the method signatures in the converter util class.

The reason why #2 is the way it is right now is because it is introduced to figure out the min occurs 0 case when an element is nillable. One can have nillable and minoccurs = 0, both in a single element and that brings a need to figure out the difference. If the tracker is set that means the value is set, may be to null but the bottom line is the setter method got called!

Same applies to #3 

As for #4 we can improve the code but that gain is minimal. I suppose a seperare Jira for that would be good, at least if it is very necessary :)

> [ADB] Feedback from Wendy's POC
> -------------------------------
>
>                 Key: AXIS2-736
>                 URL: http://issues.apache.org/jira/browse/AXIS2-736
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>            Reporter: Davanum Srinivas
>         Assigned To: Ajith Harshana Ranabahu
>
> See original email here:
> http://mail-archives.apache.org/mod_mbox/ws-axis-dev/200605.mbox/%3cOF220CACBE.411DB84B-ON8525716B.0074F142-8525716B.007C5C4F@wendys.com%3e
> 4.   Bug:  GetAppReleasesType.java does not compile.
> In the GetAppReleasesType#Factory.parse method, a reference is made to the 
> nonexistent method "
> org.apache.axis2.databinding.utils.ConverterUtil.convertToNonNegativeInteger(content)
> ".
> The correct method name is "
> org.apache.axis2.databinding.utils.ConverterUtil.convertTononNegativeInteger(content)
> ".  Note:  There is a correct reference to the 
> org.apache.axis2.databinding.utils.ConverterUtil.convertTononNegativeInteger 
> method in the AppRelease#Factory.parse method.  This leads me to conclude 
> that you are not using common methods to determine which conversions to 
> perform on input vs. output content, and so bugs that are caught in one 
> class may still be unidentified in another class.
> 5.   Bug:  In AppRelease.java, the values for localAvailabilityStopTracker 
> and localReleaseDescTracker are not set properly.
> In the setters for the attributes that these Trackers track, the following 
> code should be used to ensure that the Trackers are set properly:
> For localAvailabilityStopTracker - 
>     public void setAvailabilityStop(java.util.Date param) {
>         // update the setting tracker
>         localAvailabilityStopTracker = (param != null);
>         this.localAvailabilityStop = param;
>     }
> For localReleaseDescTracker - 
>     public void setReleaseDesc(java.lang.String param) {
>         // update the setting tracker
>         localReleaseDescTracker = true;
>         this.localReleaseDesc = param;
>     }
> As generated by WSDL2Java, the Tracker is set to true even if the variable 
> it is tracking is unset back to null.
> 6.   Bug:  In the AppReleaseResponse.setReturn method, the value of 
> local_returnTracker may be set to true, but it will never be unset.
> Similar to Bug #3, the local_returnTracker should be set using the 
> following code to ensure that it is unset when the supplied parm is null:
>     public void set_return(com.wendys.ws.apprelease.AppRelease[] param) {
>         validate_return(param);
>         // update the setting tracker
>         local_returnTracker = (param != null);
>         local_return = param;
>     }
> 7.   Annoyance:  In the AppReleaseResponse.addReturn method, 
> local_returnTracker only needs to be set to true when the local_return 
> array is instantiated, not every time an AppRelease is added to the array.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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