axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bu...@apache.org
Subject cvs commit: xml-axis/java/src/org/apache/axis/encoding DefaultTypeMappingImpl.java
Date Thu, 11 Apr 2002 16:17:55 GMT
butek       02/04/11 09:17:55

  Modified:    java/src/org/apache/axis/encoding
                        DefaultTypeMappingImpl.java
  Log:
  Date interop still wasn't working.  We changed the javaType fields when
  we registered the various dates, but we forgot to change the (de)serializers
  from Date(De)Serializer to Calendar(De)Serializer.
  
  And we need to keep the xsd:date (de)serializers as Date(De)Serializers,
  otherwise test/encoding/TestDeser2001 doesn't work.
  
  Revision  Changes    Path
  1.19      +6 -6      xml-axis/java/src/org/apache/axis/encoding/DefaultTypeMappingImpl.java
  
  Index: DefaultTypeMappingImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/encoding/DefaultTypeMappingImpl.java,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- DefaultTypeMappingImpl.java	5 Apr 2002 16:15:37 -0000	1.18
  +++ DefaultTypeMappingImpl.java	11 Apr 2002 16:17:55 -0000	1.19
  @@ -258,21 +258,21 @@
           // XSD_DATE is the current one, which is why it is
           // registered after the other two
           myRegister(Constants.XSD_DATE2,      java.util.Calendar.class,
  -                   new DateSerializerFactory(java.util.Calendar.class,
  +                   new CalendarSerializerFactory(java.util.Calendar.class,
                                                Constants.XSD_DATE2),
  -                   new DateDeserializerFactory(java.util.Calendar.class,
  +                   new CalendarDeserializerFactory(java.util.Calendar.class,
                                                  Constants.XSD_DATE2),
                      true);
           myRegister(Constants.XSD_DATE3,      java.util.Calendar.class,
  -                   new DateSerializerFactory(java.util.Calendar.class,
  +                   new CalendarSerializerFactory(java.util.Calendar.class,
                                                Constants.XSD_DATE3),
  -                   new DateDeserializerFactory(java.util.Calendar.class,
  +                   new CalendarDeserializerFactory(java.util.Calendar.class,
                                                  Constants.XSD_DATE3),
                      true);
           myRegister(Constants.XSD_DATE1,       java.util.Calendar.class,
  -                   new DateSerializerFactory(java.util.Calendar.class,
  +                   new DateSerializerFactory(java.util.Date.class,
                                                Constants.XSD_DATE1),
  -                   new DateDeserializerFactory(java.util.Calendar.class,
  +                   new DateDeserializerFactory(java.util.Date.class,
                                                  Constants.XSD_DATE1),
                      true);
           myRegister(Constants.XSD_DATE,       java.util.Calendar.class,
  
  
  

Mime
View raw message