liyesa opened a new issue, #12833: URL: https://github.com/apache/dubbo/issues/12833
<!-- If you need to report a security issue please visit https://github.com/apache/dubbo/security/policy --> - [x] I have searched the [issues](https://github.com/apache/dubbo/issues) of this repository and believe that this is not a duplicate. ### Environment * Dubbo version: 3.2.4 * Operating System version: x86_64 Linux * Java version: openJDK 17 ### Steps to reproduce this issue 1. service result类,包含4个boolean属性,两个默认值为true ``` public class Foo implements Serializable { boolean success = true; boolean success1 = true; boolean success2; boolean success3; String message; // getter,setter ... ``` 2. DubboService将4个boolean属性全部设置为false,并返回 ``` @DubboService public class TestServiceImpl implements TestService { @Override public Foo foo() { Foo c = new Foo(); c.setSuccess(false); c.setSuccess1(false); c.setSuccess2(false); c.setSuccess3(false); c.setMessage("success"); return c; } } ``` 3. bug: 返回结果,默认值为true的属性,接口返回值为true,而不是service设置的false ``` {"success":true,"success1":true,"success2":false,"success3":false,"message":"success"} ``` Pls. provide [GitHub address] to reproduce this issue. sample code: https://github.com/liyesa/dubbo-bug ### Expected Behavior <!-- What do you expect from the above steps?--> boolean值能正确返回 ### Actual Behavior <!-- What actually happens? --> 有初始值=true的boolean属性,client拿到的永远是false; 补充: 在doubbo admin执行,返回结果正常 在telnet执行,返回结果正常 设置preferSerialization为 hessian2,返回结果正确 If there is an exception, please attach the exception trace: NONE error log -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
