You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2021/10/20 07:45:00 UTC

[jira] [Commented] (WICKET-6927) Get rid of java.security.AccessController

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

ASF subversion and git services commented on WICKET-6927:
---------------------------------------------------------

Commit 9d74a88d83f940f1d5fb0d966b1cd960453a13c4 in wicket's branch refs/heads/master from Martin Tzvetanov Grigorov
[ https://gitbox.apache.org/repos/asf?p=wicket.git;h=9d74a88 ]

WICKET-6927 Get rid of java.security.AccessController


> Get rid of java.security.AccessController
> -----------------------------------------
>
>                 Key: WICKET-6927
>                 URL: https://issues.apache.org/jira/browse/WICKET-6927
>             Project: Wicket
>          Issue Type: Improvement
>          Components: wicket
>    Affects Versions: 9.5.0
>            Reporter: Martin Tzvetanov Grigorov
>            Assignee: Martin Tzvetanov Grigorov
>            Priority: Major
>
> Trying to build Wicket with JDK 17.0.1 fails with:
> {code:java}
> ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:3.3.1:jar (attach-javadocs) on project wicket-util: MavenReportException: Error while generating Javadoc: 
> [ERROR] Exit code: 1 - /home/ubuntu/git/apache/wicket/wicket-util/src/main/java/org/apache/wicket/util/string/Strings.java:21: warning: [removal] AccessController in java.security has been deprecated and marked for removal
> [ERROR] import java.security.AccessController;
> [ERROR]                     ^
> [ERROR] error: Error fetching URL: https://download.java.net/java/early_access/jdk17/docs/api/ (java.io.FileNotFoundException: https://download.java.net/java/early_access/jdk17/docs/api/package-list)
> [ERROR] 1 error
> [ERROR] 1 warning
> [ERROR] 
>  {code}
>  
> Strings#LINE_SEPARATOR uses AccessController to read the system property "line.separator".
> For Wicket 9.x we could use System.lineSeparator().
> For Wicket 10.x we could drop #LINE_SEPARATOR because it is not used by Wicket itself. User applications could use System.lineSeparator().



--
This message was sent by Atlassian Jira
(v8.3.4#803005)