avro-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tomwh...@apache.org
Subject svn commit: r1383840 - in /avro/trunk: CHANGES.txt lang/java/avro/src/main/java/org/apache/avro/reflect/ReflectData.java lang/java/avro/src/test/java/org/apache/avro/reflect/TestReflect.java
Date Wed, 12 Sep 2012 08:19:08 GMT
Author: tomwhite
Date: Wed Sep 12 08:19:08 2012
New Revision: 1383840

URL: http://svn.apache.org/viewvc?rev=1383840&view=rev
Log:
AVRO-1155. Stringable Date test in TestReflect fails if timezone doesn't match locale's default.

Modified:
    avro/trunk/CHANGES.txt
    avro/trunk/lang/java/avro/src/main/java/org/apache/avro/reflect/ReflectData.java
    avro/trunk/lang/java/avro/src/test/java/org/apache/avro/reflect/TestReflect.java

Modified: avro/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/avro/trunk/CHANGES.txt?rev=1383840&r1=1383839&r2=1383840&view=diff
==============================================================================
--- avro/trunk/CHANGES.txt (original)
+++ avro/trunk/CHANGES.txt Wed Sep 12 08:19:08 2012
@@ -46,6 +46,9 @@ Avro 1.7.2 (unreleased)
     AVRO-1111. Malformed data can cause OutOfMemoryError in Avro IPC.
     (Mike Percy via tomwhite)
 
+    AVRO-1155. Stringable Date test in TestReflect fails if timezone doesn't
+    match locale's default. Removed Date from built-in stringables. (tomwhite)
+
 Avro 1.7.1 (16 July 2012)
 
   NEW FEATURES

Modified: avro/trunk/lang/java/avro/src/main/java/org/apache/avro/reflect/ReflectData.java
URL: http://svn.apache.org/viewvc/avro/trunk/lang/java/avro/src/main/java/org/apache/avro/reflect/ReflectData.java?rev=1383840&r1=1383839&r2=1383840&view=diff
==============================================================================
--- avro/trunk/lang/java/avro/src/main/java/org/apache/avro/reflect/ReflectData.java (original)
+++ avro/trunk/lang/java/avro/src/main/java/org/apache/avro/reflect/ReflectData.java Wed Sep
12 08:19:08 2012
@@ -88,7 +88,6 @@ public class ReflectData extends Specifi
     stringableClasses.add(java.net.URI.class);
     stringableClasses.add(java.net.URL.class);
     stringableClasses.add(java.io.File.class);
-    stringableClasses.add(java.util.Date.class);
   }
 
   public ReflectData() {}

Modified: avro/trunk/lang/java/avro/src/test/java/org/apache/avro/reflect/TestReflect.java
URL: http://svn.apache.org/viewvc/avro/trunk/lang/java/avro/src/test/java/org/apache/avro/reflect/TestReflect.java?rev=1383840&r1=1383839&r2=1383840&view=diff
==============================================================================
--- avro/trunk/lang/java/avro/src/test/java/org/apache/avro/reflect/TestReflect.java (original)
+++ avro/trunk/lang/java/avro/src/test/java/org/apache/avro/reflect/TestReflect.java Wed Sep
12 08:19:08 2012
@@ -608,7 +608,6 @@ public class TestReflect {
     checkStringable(java.net.URI.class, "foo://bar:9000/baz");
     checkStringable(java.net.URL.class, "http://bar:9000/baz");
     checkStringable(java.io.File.class, "foo.bar");
-    checkStringable(java.util.Date.class, "Sat, 12 Aug 1995 13:30:00 GMT");
   }
 
   public void checkStringable(Class c, String value) throws Exception {



Mime
View raw message