Skip to content

RuntimeHints missing for WebFlux #28701

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
mhalbritter opened this issue Jun 24, 2022 · 0 comments
Closed

RuntimeHints missing for WebFlux #28701

mhalbritter opened this issue Jun 24, 2022 · 0 comments
Assignees
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) theme: aot An issue related to Ahead-of-time processing type: enhancement A general enhancement
Milestone

Comments

@mhalbritter
Copy link
Contributor

mhalbritter commented Jun 24, 2022

I had to add these hints to get WebFlux with Netty running, using the spring-native sample webflux-netty on this branch:

        hints.resources().registerPattern("org/springframework/http/codec/CodecConfigurer.properties");
        hints.reflection().registerType(DefaultClientCodecConfigurer.class, hint -> hint.withMembers(MemberCategory.INVOKE_PUBLIC_CONSTRUCTORS));
        hints.reflection().registerType(DefaultServerCodecConfigurer.class, hint -> hint.withMembers(MemberCategory.INVOKE_PUBLIC_CONSTRUCTORS));
        RuntimeHintsUtils.registerAnnotation(hints, RequestMapping.class);

I only did the minimal possible work that the sample passes, so I guess this is far from being complete.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Jun 24, 2022
@sdeleuze sdeleuze self-assigned this Jun 24, 2022
@sdeleuze sdeleuze added in: web Issues in web modules (web, webmvc, webflux, websocket) theme: aot An issue related to Ahead-of-time processing and removed status: waiting-for-triage An issue we've not yet triaged or decided on labels Jun 24, 2022
@sdeleuze sdeleuze added this to the 6.0.0-M5 milestone Jun 24, 2022
@snicoll snicoll changed the title AOT: Missing hints for WebFlux RuntimeHints missing for WebFlux Jun 24, 2022
@sdeleuze sdeleuze added the type: enhancement A general enhancement label Jun 28, 2022
sdeleuze added a commit to spring-attic/spring-native that referenced this issue Jun 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) theme: aot An issue related to Ahead-of-time processing type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

3 participants