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

When the main class is not proxied, native testing that uses the application's main method does not work #44461

Closed
wilkinsona opened this issue Feb 27, 2025 · 1 comment
Assignees
Labels
type: bug A general bug
Milestone

Comments

@wilkinsona
Copy link
Member

It fails due to missing hints that are needed to allow the main method to be called using reflection. Up until now, this would only be seen when using @SpringBootApplication(proxyBeanMethods=false). It will become more common with Framework 6.1.18 and 6.2.4 where CGBLib proxies are no longer generated for @Configuration classes with no @Bean methods.

@snicoll
Copy link
Member

snicoll commented Feb 28, 2025

Unfortunately, I don't see a way to register a custom hint from the place that computes the Method to use. I've raised a framework issue.

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

2 participants