axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ami...@apache.org
Subject svn commit: r709370 - in /webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding: types/Time.java utils/ConverterUtil.java
Date Fri, 31 Oct 2008 09:32:31 GMT
Author: amilas
Date: Fri Oct 31 02:32:30 2008
New Revision: 709370

URL: http://svn.apache.org/viewvc?rev=709370&view=rev
Log:
fixed the issue AXIS2-4099

Modified:
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/Time.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/ConverterUtil.java

Modified: webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/Time.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/Time.java?rev=709370&r1=709369&r2=709370&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/Time.java
(original)
+++ webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/Time.java
Fri Oct 31 02:32:30 2008
@@ -100,6 +100,7 @@
 
         Calendar calendar = Calendar.getInstance();
         calendar.clear();
+        calendar.setLenient(false);
         int hour = 0;
         int minite = 0;
         int second = 0;

Modified: webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/ConverterUtil.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/ConverterUtil.java?rev=709370&r1=709369&r2=709370&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/ConverterUtil.java
(original)
+++ webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/ConverterUtil.java
Fri Oct 31 02:32:30 2008
@@ -609,6 +609,7 @@
 
         Calendar calendar = Calendar.getInstance();
         calendar.clear();
+        calendar.setLenient(false);
         calendar.set(Calendar.YEAR, year);
         //xml month stars from the 1 and calendar month is starts with 0
         calendar.set(Calendar.MONTH, month - 1);
@@ -868,6 +869,7 @@
         Date date = null;
         Calendar calendar = Calendar.getInstance();
         calendar.clear();
+        calendar.setLenient(false);
 
 
         if (source.startsWith("-")) {



Mime
View raw message