[ 
https://issues.apache.org/jira/browse/SLING-12440?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17913841#comment-17913841
 ] 

Esteban Bustamante commented on SLING-12440:
--------------------------------------------

Thank you [~joerghoh]. The way it works now it requires[1] to extend the 
"org.apache.sling.sitemap.builder.Extension" interface, so for now at least i 
am opening a new PR to convert to @ConsumerType

 

[1]. 
[https://github.com/apache/sling-org-apache-sling-sitemap/blob/5ca300fc538b69a624ff492e4dca9d452be56e35/src/main/java/org/apache/sling/sitemap/builder/Url.java#L74]
 

!image-2025-01-16-16-19-35-924.png|width=484,height=382!

> Extension incorrectly annotated with @ProviderType
> --------------------------------------------------
>
>                 Key: SLING-12440
>                 URL: https://issues.apache.org/jira/browse/SLING-12440
>             Project: Sling
>          Issue Type: Bug
>          Components: Extensions
>            Reporter: Peter Tos
>            Priority: Major
>              Labels: sitemaps
>         Attachments: image-2025-01-16-16-19-35-924.png
>
>
> org.apache.sling.sitemap.builder.Extension is annotated with @ProviderType, 
> but the implementation requires the consumer to extend this interface. This 
> should be changed to @ConsumerType.
>  
> https://github.com/apache/sling-org-apache-sling-sitemap/blob/master/src/main/java/org/apache/sling/sitemap/builder/Extension.java#L29



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to