I'm wondering how the order of arguments is determined of a SAM when using the Adapter annotation. Feels like a bug, but not sure. #4254
-
I've been fighting this morning with the use of the For some weird reason, the order of types in the generated types, is not the same as the one in my interface that is referenced by the @adapter annotation. I've been trying to find the magic of the AOP code generation in the source code, but couldn't spot it yet, so, if anyone can clarify how the order is determined, I would like to look into it to understand what's going on. Because, it feels like a bug that the order is changed, but as this is already at version 2.1.0, I might just do something stupid as well. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
The logic for this can be found here: You can debug it running these tests: |
Beta Was this translation helpful? Give feedback.
The logic for this can be found here:
micronaut-core/inject-java/src/main/java/io/micronaut/annotation/processing/BeanDefinitionInjectProcessor.java
Line 1410 in 1c2f878
You can debug it running these tests:
micronaut-core/inject-java/src/test/groovy/io/micronaut/aop/adapter/MethodAdapterSpec.groovy
Line 27 in 1c2f878