Skip to content

Update CompatibleTypeUtils.java #7028

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

Merged
merged 1 commit into from
Dec 21, 2020
Merged

Update CompatibleTypeUtils.java #7028

merged 1 commit into from
Dec 21, 2020

Conversation

kellvian
Copy link

Fix the problem that LocalDate type is forced to be converted to LocalDateTime error

What is the purpose of the change

Fix the problem that LocalDate type is forced to be converted to LocalDateTime error

Brief changelog

Fix the problem that LocalDate type is forced to be converted to LocalDateTime error

Verifying this change

XXXXX

Follow this checklist to help us incorporate your contribution quickly and easily:

  • Make sure there is a GITHUB_issue field for the change (usually before you start working on it). Trivial changes like typos do not require a GITHUB issue. Your pull request should address just this issue, without pulling in other changes - one PR resolves one issue.
  • Format the pull request title like [Dubbo-XXX] Fix UnknownException when host config not exist #XXX. Each commit in the pull request should have a meaningful subject line and body.
  • Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
  • Write necessary unit-test to verify your logic correction, more mock a little better when cross module dependency exist. If the new feature or significant change is committed, please remember to add sample in dubbo samples project.
  • Run mvn clean install -DskipTests=false & mvn clean test-compile failsafe:integration-test to make sure unit-test and integration-test pass.
  • If this contribution is large, please follow the Software Donation Guide.

Sorry, something went wrong.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Fix the problem that LocalDate type is forced to be converted to LocalDateTime error
@kellvian
Copy link
Author

Fix the problem that LocalDate type is forced to be converted to LocalDateTime error,For example:
I want a LocalDate date of 2020-12-16, but the current version will be directly converted to LocalDateTime, and then the error format will be reported. LocalDate and LocalDateTime should be distinguished here.
The specific error is as follows:
Exception in thread "main" java.time.format.DateTimeParseException: Text '2020-10-16' could not be parsed at index 10

@2193531059
Copy link

very good!

@htynkn htynkn added the type/bug Bugs to being fixed label Dec 18, 2020
@kimmking kimmking merged commit c48dc6a into apache:2.7.x Dec 21, 2020
@DreamLi1314 DreamLi1314 mentioned this pull request Feb 19, 2021
6 tasks
DreamLi1314 added a commit to DreamLi1314/dubbo that referenced this pull request Feb 19, 2021
pr # 7028 ix the problem that LocalDate type is forced to be converted to LocalDateTime error
See  apache#7028
chickenlj pushed a commit that referenced this pull request Feb 22, 2021
Fix the problem that LocalDate type is forced to be converted to LocalDateTime error
AlbumenJ added a commit to AlbumenJ/dubbo that referenced this pull request May 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Bugs to being fixed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants