[
https://issues.apache.org/jira/browse/SLING-12271?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17860864#comment-17860864
]
Stefan Seifert commented on SLING-12271:
----------------------------------------
unfortunately this fix did not actually fix the issue, but converted the
warning to
{noformat}
[WARNING] No SupportedSourceVersion annotation found on
org.apache.sling.models.annotations.apt.ValidatingAnnotationProcessor,
returning RELEASE_6.
[WARNING] Supported source version 'RELEASE_6' from annotation processor
'org.apache.sling.models.annotations.apt.ValidatingAnnotationProcessor' less
than -source '11'
{noformat}
i also missed to cross-check the result. created SLING-12364 for follow-up.
> Supported source version 'RELEASE_8' from annotation processor
> 'org.apache.sling.models.annotations.apt.ValidatingAnnotationProcessor' less
> than -source '11'
> -------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: SLING-12271
> URL: https://issues.apache.org/jira/browse/SLING-12271
> Project: Sling
> Issue Type: Improvement
> Components: Sling Models
> Affects Versions: Models API 1.5.0
> Reporter: Konrad Windszus
> Assignee: Konrad Windszus
> Priority: Major
> Fix For: Models API 1.5.2
>
>
> The annotation processor introduced with SLING-11507 only supports Java 8
> source code version according to the annotation
> https://github.com/apache/sling-org-apache-sling-models-api/blob/3a2bfd7882ef0ef453261aff4f58adeee171c4c7/src/main/java/org/apache/sling/models/annotations/apt/ValidatingAnnotationProcessor.java#L41.
> This leads to the following warning during compilation when using javac's
> {{source}} or {{release}} option with any other value than 1.8/8.
> {code}
> [WARNING] Supported source version 'RELEASE_8' from annotation processor
> 'org.apache.sling.models.annotations.apt.ValidatingAnnotationProcessor' less
> than -source '11'
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)