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

Make CloudEventMessageUtils more AOT friendly #892

Closed
onobc opened this issue Jul 12, 2022 · 0 comments
Closed

Make CloudEventMessageUtils more AOT friendly #892

onobc opened this issue Jul 12, 2022 · 0 comments

Comments

@onobc
Copy link
Contributor

onobc commented Jul 12, 2022

Currently CloudEventMessageUtils uses reflection to access headers on a private field. This is disrupting AOT samples. Rather than add hints for this, lets remove the use of reflection altogether.

With spring-projects/spring-boot#31531 fixed, the cloud-function-netty sample of the sb-3.0.x branch now fails on a Spring Cloud related error : java.lang.NullPointerException : org.springframework.cloud.function.cloudevent.CloudEventMessageUtils.(CloudEventMessageUtils.java:67).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants