You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Robert Munteanu (Jira)" <ji...@apache.org> on 2023/06/30 13:56:00 UTC

[jira] [Resolved] (SLING-11921) Building javadoc with Java 11 fails

     [ https://issues.apache.org/jira/browse/SLING-11921?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Munteanu resolved SLING-11921.
-------------------------------------
    Resolution: Fixed

> Building javadoc with Java 11 fails
> -----------------------------------
>
>                 Key: SLING-11921
>                 URL: https://issues.apache.org/jira/browse/SLING-11921
>             Project: Sling
>          Issue Type: Bug
>          Components: XSS Protection API
>    Affects Versions: XSS Protection API 2.3.8
>            Reporter: Robert Munteanu
>            Assignee: Robert Munteanu
>            Priority: Major
>             Fix For: XSS Protection API 2.3.10
>
>
> After the fix for 11610, building javadoc with Java 11 or newer fails
> {noformat}[ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:3.4.0:jar (default-cli) on project org.apache.sling.xss: MavenReportException: Error while generating Javadoc: 
> [ERROR] Exit code: 1 - /home/robert/sources/apache/sling/org-apache-sling-xss/src/main/java/org/apache/sling/xss/impl/AntiSamyPolicyAdapter.java:39: error: package sun.misc does not exist
> [ERROR] import sun.misc.Unsafe;
> [ERROR]                ^
> [ERROR] 
> [ERROR] Command line was: /usr/lib64/jvm/java-11-openjdk-11/bin/javadoc @options @packages{noformat}
> As a direct consequence, releasing must be done with Java 8



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