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 "Ashutosh Shahi (JIRA)" <ax...@ws.apache.org> on 2004/10/26 06:55:44 UTC

[jira] Commented: (AXIS-1620) Time constructor modifies passed in parameter

     [ http://issues.apache.org/jira/browse/AXIS-1620?page=comments#action_54644 ]
     
Ashutosh Shahi commented on AXIS-1620:
--------------------------------------

This bug is duplicate of AXIS-1521 . I have already submitted a patch for that.
Ashutosh

> Time constructor modifies passed in parameter
> ---------------------------------------------
>
>          Key: AXIS-1620
>          URL: http://issues.apache.org/jira/browse/AXIS-1620
>      Project: Axis
>         Type: Bug
>     Versions: current (nightly)
>     Reporter: Daniel Sheppard
>     Priority: Minor

>
> The constructor of the Time object (org.apache.axis.types.Time):
>     public Time(Calendar value) {
>         this._value = value;
>         _value.set(0,0,0);      // ignore year, month, date
>     }
> This modifies the passed in calendar object. It should clone the object beforehand. If this is being done for performance reasons, it should be noted in the javadoc.

-- 
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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira