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

members of Interface TypeInformation are null when AOP and Data Rest are enabled and a bean is marked @Lazy #3086

Open
james-bryant opened this issue Apr 26, 2024 · 0 comments
Assignees
Labels
status: waiting-for-triage An issue we've not yet triaged

Comments

@james-bryant
Copy link

I have encountered a very strange issue and I'm not sure what to make of it.
It seems that: if AOP is enabled, Spring Data Rest is enabled, and a bean is marked @lazy, then the constants in TypeInformation return null instead of thier expected values.
I was able to create an example project that can reproduce the issue. I went ahead and submitted that to the Spring Boot guys and they sent me over here: spring-projects/spring-boot#40510
Here is the example project, it contains both my original test to reproduce it and the newer test created by the Spring Boot guys:
lazy-proxy-issue.zip

In the first test, you can work around the issue by removing the @lazy annotation from the bean. In the second test, removing the assignment to 'whatever' will work around the issue, as described in the ticket.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Apr 26, 2024
@mp911de mp911de self-assigned this Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: waiting-for-triage An issue we've not yet triaged
Projects
None yet
Development

No branches or pull requests

3 participants