7FreezingPoint opened a new issue, #16296: URL: https://github.com/apache/dubbo/issues/16296
### Pre-check - [x] I am sure that all the content I provide is in English. ### Search before asking - [x] I had searched in the [issues](https://github.com/apache/dubbo/issues?q=is%3Aissue) and found no similar issues. ### Apache Dubbo Component Java SDK (apache/dubbo) ### Dubbo Version Dubbo:3.3.6 JDK:BellSoft Liberica 25.0.3/21.0.11 ### Steps to reproduce this issue Dubbo 3.3.6's dubbo-common explicitly lists FastJson2, FastJson, Gson, and Jackson in META-INF/services/org.apache.dubbo.common.json.JsonUtil. Under JDK 25, when ServiceLoader loads GsonImpl, it verifies the constructor and fails if the Gson class is missing; under JDK 21, this failure point is simply not reached. The next step is to examine JsonUtils' selection logic to determine whether there's a system property that can directly specify Jackson. ### What you expected to happen Dubbo 3.3.6 declares multiple JsonUtil implementations including Gson. ServiceLoader will verify the constructor of GsonImpl on JDK 25 and throw ClassNotFoundException without Gson library, while JDK 21 behaves differently. ### Anything else <img width="1242" height="503" alt="Image" src="https://github.com/user-attachments/assets/a128432a-9cae-42d2-8735-e1ce5259bde4" /> ### Do you have a (mini) reproduction demo? - [ ] Yes, I have a minimal reproduction demo to help resolve this issue more effectively! ### Are you willing to submit a pull request to fix on your own? - [ ] Yes I am willing to submit a pull request on my own! ### Code of Conduct - [x] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) -- 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]
