Opened 6 months ago
Closed 6 months ago
#2320 closed defect (fixed)
Warning when compiling BASE with Java 17
Reported by: | Nicklas Nordborg | Owned by: | Nicklas Nordborg |
---|---|---|---|
Priority: | minor | Milestone: | BASE 3.19.11 |
Component: | build | Version: | |
Keywords: | Cc: |
Description
svn.revision: WARNING: A terminally deprecated method in java.lang.System has been called WARNING: System::setSecurityManager has been called by org.apache.tools.ant.types.Permissions (file:/C:/Software/Ant/lib/ant.jar) WARNING: Please consider reporting this to the maintainers of org.apache.tools.ant.types.Permissions WARNING: System::setSecurityManager will be removed in a future release [echo] Build #8190
and with Java 20 we get an error:
svn.revision: [java] java.lang.UnsupportedOperationException: The Security Manager is deprecated and will be removed in a future release [java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:194) [java] at org.apache.tools.ant.taskdefs.Java.run(Java.java:861) [java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:231) [java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:135) [java] at org.apache.tools.ant.taskdefs.Java.execute(Java.java:108) [java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292) [java] at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104) [java] at java.base/java.lang.reflect.Method.invoke(Method.java:578) [java] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99) [java] at org.apache.tools.ant.Task.perform(Task.java:350) [java] at org.apache.tools.ant.Target.execute(Target.java:449) [java] at org.apache.tools.ant.Target.performTasks(Target.java:470) [java] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1388) [java] at org.apache.tools.ant.Project.executeTarget(Project.java:1361) [java] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) [java] at org.apache.tools.ant.Project.executeTargets(Project.java:1251) [java] at org.apache.tools.ant.Main.runBuild(Main.java:834) [java] at org.apache.tools.ant.Main.startAnt(Main.java:223) [java] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:284) [java] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:101) [java] Caused by: java.lang.UnsupportedOperationException: The Security Manager is deprecated and will be removed in a future release [java] at java.base/java.lang.System.setSecurityManager(System.java:429) [java] at org.apache.tools.ant.types.Permissions.setSecurityManager(Permissions.java:103) [java] at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:216) [java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:155) [java] ... 19 more [java] Java Result: -1 [echo] Build #${base.build}
Change History (1)
comment:1 by , 6 months ago
Owner: | set to |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
In 8199: