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

zrlw 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 e00941773f Revert "Fixed the issue of type loss in generalized call 
cases. (#15562)" (#15571)
e00941773f is described below

commit e00941773f5aa66974c140e154c09019ff78941f
Author: zrlw <[email protected]>
AuthorDate: Sun Jul 20 19:57:39 2025 +0800

    Revert "Fixed the issue of type loss in generalized call cases. (#15562)" 
(#15571)
    
    This reverts commit ef5bf4af962b48f5e6de1d08ec7aaf1d825f06b7.
---
 .../src/main/java/org/apache/dubbo/common/utils/PojoUtils.java      | 2 +-
 .../src/test/java/org/apache/dubbo/common/utils/PojoUtilsTest.java  | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git 
a/dubbo-common/src/main/java/org/apache/dubbo/common/utils/PojoUtils.java 
b/dubbo-common/src/main/java/org/apache/dubbo/common/utils/PojoUtils.java
index 1a7034c8f9..e861c3f298 100644
--- a/dubbo-common/src/main/java/org/apache/dubbo/common/utils/PojoUtils.java
+++ b/dubbo-common/src/main/java/org/apache/dubbo/common/utils/PojoUtils.java
@@ -160,7 +160,7 @@ public class PojoUtils {
         }
 
         if (pojo instanceof LocalDate || pojo instanceof LocalDateTime || pojo 
instanceof LocalTime) {
-            return pojo;
+            return pojo.toString();
         }
 
         if (pojo instanceof Class) {
diff --git 
a/dubbo-common/src/test/java/org/apache/dubbo/common/utils/PojoUtilsTest.java 
b/dubbo-common/src/test/java/org/apache/dubbo/common/utils/PojoUtilsTest.java
index d506a48881..2a1d28ce28 100644
--- 
a/dubbo-common/src/test/java/org/apache/dubbo/common/utils/PojoUtilsTest.java
+++ 
b/dubbo-common/src/test/java/org/apache/dubbo/common/utils/PojoUtilsTest.java
@@ -772,15 +772,15 @@ class PojoUtilsTest {
 
         Object localDateTimeGen = PojoUtils.generalize(LocalDateTime.now());
         Object localDateTime = PojoUtils.realize(localDateTimeGen, 
LocalDateTime.class);
-        assertEquals(localDateTimeGen, localDateTime);
+        assertEquals(localDateTimeGen, localDateTime.toString());
 
         Object localDateGen = PojoUtils.generalize(LocalDate.now());
         Object localDate = PojoUtils.realize(localDateGen, LocalDate.class);
-        assertEquals(localDateGen, localDate);
+        assertEquals(localDateGen, localDate.toString());
 
         Object localTimeGen = PojoUtils.generalize(LocalTime.now());
         Object localTime = PojoUtils.realize(localTimeGen, LocalTime.class);
-        assertEquals(localTimeGen, localTime);
+        assertEquals(localTimeGen, localTime.toString());
     }
 
     @Test

Reply via email to