Skip to content

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

Answered by graemerocher
willemsst asked this question in Q&A
Discussion options

You must be logged in to vote

The logic for this can be found here:

private void visitAdaptedMethod(ExecutableElement method, AnnotationMetadata methodAnnotationMetadata) {

You can debug it running these tests:

void "test method adapter produces additional bean"() {

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@willemsst
Comment options

@graemerocher
Comment options

@willemsst
Comment options

Answer selected by graemerocher
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants