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

Support Micronaut 4 ConversionService type #1527

Merged

Conversation

lucjross-favor
Copy link
Contributor

@lucjross-favor lucjross-favor commented Sep 14, 2023

Hi, Lukáš,

My application uses Micronaut 4, is written in Kotlin, and uses KSP for annotation processing. The annotation SchedulerLock isn't being processed and I believe it's due to SchedulerLockInterceptor's use of ConversionService<?>. ConversionService is unparameterized in Micronaut 4 so I think KSP is quietly failing to apply the interceptor as Aspect advice on my annotated method. This hopefully is backward compatible and will get my code working.

@lukas-krecan
Copy link
Owner

Hi, thanks a lot. I tried to write a test for that here but it's failing. Most likely due to invalid setup on my side. Can you please look at it?

@lukas-krecan
Copy link
Owner

Hi, I am afraid the best way is to create a new micronaut4 module like this. The test pases if I do it this way.

@lukas-krecan lukas-krecan merged commit 018e5d9 into lukas-krecan:master Sep 15, 2023
4 checks passed
@lukas-krecan
Copy link
Owner

lukas-krecan commented Sep 15, 2023

I have created a new module. Feels safer this way. Will be released as 5.8.0 in few minutes. Thanks

@lucjross-favor
Copy link
Contributor Author

Sorry for slow reply. This is amazing! Thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants