xiaoheng1 commented on issue #8742:
URL: https://github.com/apache/dubbo/issues/8742#issuecomment-917796140
> application和version都是URL存储在Global Param Cache
Table里的参数,URL.valueOf构造的URLParam不会存储这些参数,只是通过一个BitSet指向DynamicParamTable对应的index。
>
你这种场景需要对valueOf构建出来的URL再加一次toSerializableURL()转换,再加上morphNonFinalPojosStrategy策略:
>
> ```
> URL data = URL.valueOf("blah blah").toSerializableURL();
> DefaultIdStrategy morphNonFinalPojosStrategy = new
DefaultIdStrategy(
> IdStrategy.DEFAULT_FLAGS |
IdStrategy.MORPH_NON_FINAL_POJOS, null, 0);
> Schema<URL> schema = RuntimeSchema.getSchema(URL.class,
morphNonFinalPojosStrategy);
> ```
这样弄了也解决不了,你可以试下,反序列化后的值和序列化之前的值不一样
--
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]