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

@Value cases SpringCGLIB$$0 required a bean of type java.lang.String that could not be found in Native compile when migrating to SB 3.4 #33960

Closed
mshima opened this issue Nov 25, 2024 · 1 comment
Assignees
Labels
theme: aot An issue related to Ahead-of-time processing type: regression A bug that is also a regression
Milestone

Comments

@mshima
Copy link

mshima commented Nov 25, 2024

Seems to be an incomplete fix to #33030.

Workaround is to use proxyBeanMethods = false .

@Configuration
public class LoggingConfiguration {
    public LoggingConfiguration(@Value("${spring.application.name}") String appName, @Value("${server.port}") String serverPort) {}
}
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Nov 25, 2024
@snicoll snicoll changed the title @Value cases SpringCGLIB$$0 required a bean of type 'java.lang.String' that could not be found in Native compile when migrating to SB 3.4. @Value cases SpringCGLIB$$0 required a bean of type java.lang.String that could not be found in Native compile when migrating to SB 3.4 Dec 6, 2024
@snicoll
Copy link
Member

snicoll commented Dec 6, 2024

Thanks for the report. I believe this is a side effect of #32834

@snicoll snicoll added type: regression A bug that is also a regression 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 Dec 6, 2024
@snicoll snicoll modified the milestones: 6.2.x, 6.2.1 Dec 6, 2024
@snicoll snicoll self-assigned this Dec 6, 2024
@snicoll snicoll closed this as completed in 0d72477 Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
theme: aot An issue related to Ahead-of-time processing type: regression A bug that is also a regression
Projects
None yet
Development

No branches or pull requests

3 participants