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
Fix #1411 Java Locale use '_' split language, country, variant. #1413
Conversation
杨浩 seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
private String language; | ||
private String country; | ||
private String variant; | ||
private String value; |
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.
revert commit 0423219
线上环境需要LocaleHandler版本兼容,所以还原代码。
@@ -68,7 +68,7 @@ public void writeObject(Object obj, AbstractHessianOutput out) | |||
else { | |||
Locale locale = (Locale) obj; | |||
|
|||
out.writeObject(new LocaleHandle(locale.getLanguage(), locale.getCountry(), locale.getVariant())); | |||
out.writeObject(new LocaleHandle(locale.toString())); |
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.
revert commit 0423219
线上环境需要LocaleHandler版本兼容,所以还原代码。
Codecov Report
@@ Coverage Diff @@
## master #1413 +/- ##
=========================================
+ Coverage 31.59% 31.6% +0.01%
=========================================
Files 682 682
Lines 33035 33048 +13
Branches 6592 6597 +5
=========================================
+ Hits 10436 10446 +10
- Misses 20748 20750 +2
- Partials 1851 1852 +1
Continue to review full report at Codecov.
|
let's merge this change, and consider how to improve it better. it doesn't have major impact anyway. |
see #1411
Java Locale.toString() split language, country and variant with char
\_
.but not support the extentions, because of truncate
\_#.*
in the commit.