-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Skip serialization of jvm invocation in ark #370
Skip serialization of jvm invocation in ark #370
Conversation
Codecov Report
@@ Coverage Diff @@
## master #370 +/- ##
=========================================
+ Coverage 66.56% 68.5% +1.93%
=========================================
Files 130 132 +2
Lines 3739 3801 +62
Branches 511 514 +3
=========================================
+ Hits 2489 2604 +115
+ Misses 960 901 -59
- Partials 290 296 +6
Continue to review full report at Codecov.
|
} finally { | ||
pushThreadContextClassLoader(tcl); | ||
} | ||
} else if (TOSTRING_METHOD.equalsIgnoreCase(targetMethod.getName()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里的 else 可以去掉下,可读性更强点
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已改。
@@ -127,6 +127,10 @@ | |||
<xsd:attribute name="registry" type="xsd:string" use="optional"/> | |||
<xsd:attribute name="serialize-type" type="xsd:string" use="optional"/> | |||
</xsd:complexType> | |||
<!-- binding.jvm im reference --> | |||
<xsd:complexType name="BBindingJvmReference"> | |||
<xsd:attribute name="serialize" type="xsd:boolean" default="false" use="optional"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个为啥默认是false
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reference 默认不走序列化,service 默认走序列化. 只有两者都为 false 是,才会走直接调用模式。
服务端如果设置不走序列化,需要将相关类导出,而客户端无需变更代码。
只有当引用服务的应用配置了 deny-import 相关类,此时,客户端可能需要强制设置走序列化方式.
@@ -127,6 +127,10 @@ | |||
<xsd:attribute name="registry" type="xsd:string" use="optional"/> | |||
<xsd:attribute name="serialize-type" type="xsd:string" use="optional"/> | |||
</xsd:complexType> | |||
<!-- binding.jvm im reference --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
im 是什么意思?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo , 已改。
@@ -33,8 +33,18 @@ | |||
*/ | |||
public static BindingType JVM_BINDING_TYPE = new BindingType("jvm"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里的 "jvm" 字符串也换成下面的 XmlConstants 常量吧。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已替换
…-boot into skip_jvm_hessian_in_ark
#369