Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-6927

Get rid of java.security.AccessController

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 9.5.0
    • 10.0.0-M1, 9.6.0
    • wicket
    • None

    Description

      Trying to build Wicket with JDK 17.0.1 fails with:

      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] 
       

       

      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().

      Attachments

        Activity

          People

            mgrigorov Martin Tzvetanov Grigorov
            mgrigorov Martin Tzvetanov Grigorov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: