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

Generated code does not take visibility of method if it is defined in a parent class #29245

Closed
sdeleuze opened this issue Oct 3, 2022 · 0 comments
Assignees
Labels
theme: aot An issue related to Ahead-of-time processing type: bug A general bug
Milestone

Comments

@sdeleuze
Copy link
Contributor

sdeleuze commented Oct 3, 2022

The code generated by the AOT engine when ProxyJCacheConfiguration is used seems broken with this error:

[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:3.0.0-SNAPSHOT:process-aot (process-aot) on project spring-petclinic: Unable to compile generated source
[ERROR] cannot find symbol
[ERROR]   symbol:   method setConfigurers(java.lang.Object)
[ERROR]   location: variable instance of type org.springframework.cache.jcache.config.ProxyJCacheConfiguration /Users/odrotbohm/Documents/workspace/spring-petclinic/target/spring-aot/main/sources/org/springframework/cache/jcache/config/ProxyJCacheConfiguration__Autowiring.java 16:136

This issue was originally reported by @odrotbohm when trying to compile the Spring Boot 3 branch of Petclinic to native.

@sdeleuze sdeleuze added type: bug A general bug theme: aot An issue related to Ahead-of-time processing labels Oct 3, 2022
@sdeleuze sdeleuze added this to the 6.0.0-RC1 milestone Oct 3, 2022
@snicoll snicoll added type: regression A bug that is also a regression and removed type: bug A general bug labels Oct 3, 2022
@snicoll snicoll changed the title Code generation broken for ProxyJCacheConfiguration Generated code does no longer take visibility of method if it is defined in a parent class Oct 3, 2022
@snicoll snicoll changed the title Generated code does no longer take visibility of method if it is defined in a parent class Generated code does take visibility of method if it is defined in a parent class Oct 3, 2022
@snicoll snicoll changed the title Generated code does take visibility of method if it is defined in a parent class Generated code does not take visibility of method if it is defined in a parent class Oct 3, 2022
@snicoll snicoll added type: bug A general bug and removed type: regression A bug that is also a regression labels Oct 3, 2022
@snicoll snicoll closed this as completed in 3b2b36d Oct 3, 2022
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: bug A general bug
Projects
None yet
Development

No branches or pull requests

2 participants