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 ax...@ws.apache.org on 2004/09/28 16:20:32 UTC

[jira] Updated: (AXIS-1521) Problem with the org.apache.axis.types.Time class constructor

The following issue has been updated:

    Updater: Ashutosh Shahi (mailto:ashutosh.shahi@gmail.com)
       Date: Tue, 28 Sep 2004 7:18 AM
    Comment:
I have resolved the issue. The problem was that we were directly assigning one calendar value to other and then changing some fields of the second calendar value in Time class, which resulted in side effect.
I have modified the Time class so that we create a new instance of calendar, and assign only those fields which are required so that there is no side effect.
Ashutosh
    Changes:
             Attachment changed to diff.txt
    ---------------------------------------------------------------------
For a full history of the issue, see:

  http://issues.apache.org/jira/browse/AXIS-1521?page=history

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/AXIS-1521

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: AXIS-1521
    Summary: Problem with the org.apache.axis.types.Time class constructor
       Type: Bug

     Status: Unassigned
   Priority: Minor

    Project: Axis
 Components: 
             Basic Architecture
   Versions:
             1.1

   Assignee: 
   Reporter: sbello

    Created: Thu, 19 Aug 2004 3:31 AM
    Updated: Tue, 28 Sep 2004 7:18 AM
Environment: j2sdk1.4.2_04

Description:
/*
The org.apache.axis.types.Time have a constructor:

public Time(java.util.Calendar value)

When we invokes this constructor with a Calendar some attributes are reset. The next code shows this effect.
*/

import org.apache.axis.types.Time;
import java.util.GregorianCalendar;
import java.util.Date;

public class Test {
  public static void main(String[] args) {
    GregorianCalendar aCalendar = new GregorianCalendar();
    System.out.println("Before: " + aCalendar);
    Time aTime = new Time(aCalendar);
    System.out.println("After: " + aCalendar);
  }
}



---------------------------------------------------------------------
JIRA INFORMATION:
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