Skip to content
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

CloudEventMessageUtils.getTime cannot be cast exception #1127

Closed
SheheryarAamir opened this issue Mar 22, 2024 · 0 comments
Closed

CloudEventMessageUtils.getTime cannot be cast exception #1127

SheheryarAamir opened this issue Mar 22, 2024 · 0 comments
Labels
Milestone

Comments

@SheheryarAamir
Copy link

Describe the bug
CloudEventMessageUtils.getTime(<>) through below error

class java.lang.String cannot be cast to class java.time.OffsetDateTime (java.lang.String and java.time.OffsetDateTime are in module java.base of loader 'bootstrap'). 

I think we should use OffsetDateTime.prase(<>) instead

I dont even able to find a test against this method getTime

Sample
Its a simple issue so i dont have a sample to share, in case its required I will create pull request to add unit test.

SheheryarAamir pushed a commit to SheheryarAamir/spring-cloud-function that referenced this issue Mar 22, 2024
@olegz olegz closed this as completed in 7969d06 Mar 27, 2024
@olegz olegz added the bug label Mar 28, 2024
@olegz olegz added this to the 4.1.2 milestone Mar 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants