Skip to content

Move AOT hints to main module #1446

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

Closed
wants to merge 1 commit into from
Closed

Conversation

joshlong
Copy link
Member

@joshlong joshlong commented Nov 15, 2023

This commit introduces AOT hints for types and resources used across the codebase and, more interestingly, specifically by the various JDBC-persisting repository implementations. This follows up on #1380

…the codebase and, more interestingly, specifically by the various JDBC-persisting repository implementations. This follows up on spring-projects#1380
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Nov 15, 2023
TypeReference.of(SimpleGrantedAuthority.class), TypeReference.of(OidcIdToken.class),
TypeReference.of(AbstractOAuth2Token.class), TypeReference.of(OidcUserInfo.class),
TypeReference.of(OAuth2AuthorizationRequest.class), TypeReference.of(AuthorizationGrantType.class),
TypeReference.of(OAuth2AuthorizationResponseType.class), TypeReference.of(OAuth2TokenFormat.class)),

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could we also add
TypeReference.of(DefaultSavedRequest.Builder.class) here

this.reflectionHintsRegistrar.registerReflectionHints(hints.reflection(),
Class.forName("org.springframework.security.oauth2.server.authorization.jackson2.OAuth2TokenFormatMixin"));
} catch (ClassNotFoundException ex) {
this.reflectionHintsRegistrar.registerReflectionHints(hints.reflection(), Class.forName(

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could we also add
this.reflectionHintsRegistrar.registerReflectionHints(hints.reflection(), Class.forName("org.springframework.security.web.jackson2.DefaultSavedRequestMixin"));
here

@jgrandja jgrandja changed the title This commit introduces AOT hints for types and resources used across … Move AOT hints to main module Nov 16, 2023
@jgrandja jgrandja self-assigned this Nov 16, 2023
@jgrandja jgrandja added type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged labels Nov 16, 2023
@jgrandja jgrandja added this to the 1.2.0 milestone Nov 16, 2023
@jgrandja jgrandja closed this in 0c4df7f Nov 16, 2023
jgrandja added a commit that referenced this pull request Nov 16, 2023
@jgrandja
Copy link
Collaborator

Thanks for the PR @joshlong ! This is now merged with a follow-up polish commit.

@joshlong
Copy link
Member Author

Thank you!

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

Successfully merging this pull request may close these issues.

4 participants