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

Response from loggers endpoint is incomplete in a native image #32486

Closed
wilkinsona opened this issue Sep 23, 2022 · 2 comments
Closed

Response from loggers endpoint is incomplete in a native image #32486

wilkinsona opened this issue Sep 23, 2022 · 2 comments
Assignees
Labels
type: bug A general bug
Milestone

Comments

@wilkinsona
Copy link
Member

We're missing reflection hints for some of the types that are returned by loggers. They aren't picked up automatically via @Endpoint being @Reflective because they're hidden behind the method's Map<String, Object> return type.

@wilkinsona wilkinsona added the type: bug A general bug label Sep 23, 2022
@wilkinsona wilkinsona added this to the 3.0.x milestone Sep 23, 2022
@wilkinsona
Copy link
Member Author

wilkinsona commented Sep 23, 2022

We should be able to fix this using @RegisterReflectionForBinding({ GroupLoggerLevels.class, SingleLoggerLevels.class }). It doesn't work at the moment as there's a clash with the @Reflective meta-annotation of @Endpoint which causes @RegisterReflectionForBinding's processor to be ignored. I've opened spring-projects/spring-framework#29193.

@wilkinsona wilkinsona added the status: blocked An issue that's blocked on an external project change label Sep 23, 2022
@wilkinsona
Copy link
Member Author

We wouldn't need all of the hints that @RegisterReflectionForBinding would give us so spring-projects/spring-framework#29194 could be relevant here as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug A general bug
Projects
None yet
Development

No branches or pull requests

1 participant