This is an automated email from the ASF dual-hosted git repository.

albumenj pushed a commit to branch 3.3
in repository https://gitbox.apache.org/repos/asf/dubbo.git


The following commit(s) were added to refs/heads/3.3 by this push:
     new 3de8147531 Changed FastJson2SerializationTest#testReadByte date 
variable type to LocalDate (#15289)
3de8147531 is described below

commit 3de81475319136fa2c621c1b6e67b3518bda262e
Author: zrlw <[email protected]>
AuthorDate: Wed May 7 10:06:30 2025 +0800

    Changed FastJson2SerializationTest#testReadByte date variable type to 
LocalDate (#15289)
---
 .../dubbo/common/serialize/fastjson2/FastJson2SerializationTest.java | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git 
a/dubbo-serialization/dubbo-serialization-fastjson2/src/test/java/org/apache/dubbo/common/serialize/fastjson2/FastJson2SerializationTest.java
 
b/dubbo-serialization/dubbo-serialization-fastjson2/src/test/java/org/apache/dubbo/common/serialize/fastjson2/FastJson2SerializationTest.java
index 5c64491b95..436647fe1b 100644
--- 
a/dubbo-serialization/dubbo-serialization-fastjson2/src/test/java/org/apache/dubbo/common/serialize/fastjson2/FastJson2SerializationTest.java
+++ 
b/dubbo-serialization/dubbo-serialization-fastjson2/src/test/java/org/apache/dubbo/common/serialize/fastjson2/FastJson2SerializationTest.java
@@ -27,7 +27,7 @@ import org.apache.dubbo.rpc.model.FrameworkModel;
 import java.io.ByteArrayInputStream;
 import java.io.ByteArrayOutputStream;
 import java.io.IOException;
-import java.util.Date;
+import java.time.LocalDate;
 import java.util.HashMap;
 import java.util.LinkedList;
 import java.util.List;
@@ -227,7 +227,8 @@ public class FastJson2SerializationTest {
         {
             ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
             ObjectOutput objectOutput = serialization.serialize(url, 
outputStream);
-            objectOutput.writeObject(new Date());
+            // fastjson2 could not read byte from the serialization of 
LocalDate by now. 2025/04/02
+            objectOutput.writeObject(LocalDate.now());
             objectOutput.flushBuffer();
 
             byte[] bytes = outputStream.toByteArray();

Reply via email to