logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1563303 - /logging/log4j/log4j2/trunk/log4j-api/src/test/java/org/apache/logging/log4j/message/LocalizedMessageTest.java
Date Fri, 31 Jan 2014 22:20:32 GMT
Author: ggregory
Date: Fri Jan 31 22:20:31 2014
New Revision: 1563303

URL: http://svn.apache.org/r1563303
Log:
Cannot serialize LocalizedMessage: org.apache.commons.lang3.SerializationException: java.io.EOFException

Modified:
    logging/log4j/log4j2/trunk/log4j-api/src/test/java/org/apache/logging/log4j/message/LocalizedMessageTest.java

Modified: logging/log4j/log4j2/trunk/log4j-api/src/test/java/org/apache/logging/log4j/message/LocalizedMessageTest.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/log4j-api/src/test/java/org/apache/logging/log4j/message/LocalizedMessageTest.java?rev=1563303&r1=1563302&r2=1563303&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/log4j-api/src/test/java/org/apache/logging/log4j/message/LocalizedMessageTest.java
(original)
+++ logging/log4j/log4j2/trunk/log4j-api/src/test/java/org/apache/logging/log4j/message/LocalizedMessageTest.java
Fri Jan 31 22:20:31 2014
@@ -18,6 +18,7 @@ package org.apache.logging.log4j.message
 
 import static org.junit.Assert.assertEquals;
 
+import java.io.Serializable;
 import java.util.Locale;
 
 import org.apache.commons.lang3.SerializationUtils;
@@ -29,7 +30,7 @@ import org.junit.Test;
  */
 public class LocalizedMessageTest {
 
-    private LocalizedMessage roundtrip(final LocalizedMessage msg) {
+    private <T extends Serializable> T roundtrip(final T msg) {
         return SerializationUtils.deserialize(SerializationUtils.serialize(msg));
     }
 



Mime
View raw message