-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
bug: Cannot run Groovy Script functions as a REST service since core 4.3.0 #10580
bug: Cannot run Groovy Script functions as a REST service since core 4.3.0 #10580
Comments
Could it be that both |
I don't know much about Groovy, but you can try to find what changed vs. the version that worked. |
Thanks for opening this issue @timyates. This is a blocker for four PRs I am trying to resolve for micronaut-groovy. |
#531) * fix(deps): update dependency io.micronaut:micronaut-core-bom to v4.3.9 * Disable tests pending fix to micronaut-projects/micronaut-core#10580 --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Dean Wette <wetted@unityfoundation.io>
It currently makes no sense... It seems to work with core afdc5e835feff99bb9c65c2972f8b0029ec3294e But fails with the next commit...fa244031e612d75b3994146e31e177e1ff1734e2 All that changes is the version property... I suspect something else is going on... |
I don't know if transform order is the problem, but in Groovy 4+, if a transform implements |
I must be wrong and something else must be causing the problem... I updated the Back to confused for me ;-) |
@paulk-asert That is not working. I have debuged the code and the call in |
Issue description
The upgrade to core 4.3.0 seems to have broken running groovy scripts as Functions as REST services
Reproducer
Check out
master
of micronaut-groovy, and run:The 4 REST tests will fail
If we switch micronaut-core back to 4.2.4 then the tests pass...
Suspicions
I suspect what is happening is the Bean definition is getting written BEFORE the AST transformation is occuring.
This means that in the class
$NotifyWithArgsFunction$Definition$Reference.class
with 4.3.x we get$ANNOTATION_METADATA
set toWheras with micronaut 4.2.4, it is:
The text was updated successfully, but these errors were encountered: