[ https://issues.apache.org/jira/browse/SLING-2938?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17224886#comment-17224886 ]
Henry Kuijpers commented on SLING-2938: --------------------------------------- [~kwin] with https://ci-builds.apache.org/job/Sling/job/modules/job/sling-org-apache-sling-adapter-annotations-it/job/PR-1/3/console the build was failing again due to the problem being described here: https://issues.apache.org/jira/browse/SLING-8080 This happens every now and then with my local build as well. I don't know how to fix this. However, with https://ci-builds.apache.org/job/Sling/job/modules/job/sling-org-apache-sling-adapter-annotations-it/job/PR-1/4/console the tests are passing. It however triggered an error from SonarCloud due to a deprecated Java version (it says it should be updated to Java 11). Not sure how to fix that, any ideas? PR here: https://github.com/apache/sling-org-apache-sling-adapter-annotations-it/pull/1 > AdapterMethods annotation and adapter proxy service > --------------------------------------------------- > > Key: SLING-2938 > URL: https://issues.apache.org/jira/browse/SLING-2938 > Project: Sling > Issue Type: Bug > Components: Engine, Extensions > Affects Versions: Adapter 2.1.0 > Reporter: Bertrand Delacretaz > Priority: Minor > Attachments: SLING-2938-api.patch, console.jpg > > > Following up on an idea that Olaf Otto presented at CQCon last week, I've > been working on an @AdapterMethod annotation that makes it easier to create > Sling adapters, as in > @Component > @Service > public class MyAdapters implements AdapterMethodProvider { > @AdapterMethod > public Bar toBar(Foo f) { ... adapt Foo to Bar ... } > } > As this requires changes to the sling.api bundle, I'll commit to my > whiteboard first, for review -- This message was sent by Atlassian Jira (v8.3.4#803005)