Remove SecurityManager / AccessController related code? #394
Replies: 3 comments 3 replies
-
There is nothing for PMC to discuss for now . Only reason I see for that is if API will have to be removed/changed with shorter than the normal 2 years period. If there is such case please send to the PMC list with details. |
Beta Was this translation helpful? Give feedback.
-
@sratz Has suggested that we ought to keep these until they are actually deleted. But certainly we should investigate now any impact on APIs.. I believe with Ant there are concerns that an Ant script could exit the IDE, but I don't know if a newer version of Ant has addressed that... |
Beta Was this translation helpful? Give feedback.
-
Equinox framework cannot delete these and stay compliant with the OSGi R8 specification. I think we need to wait and see what the real plan is for removing these APIs entirely from the JVM before proactively reacting. For example, I anticipate they will leave AccessController in for a very long time with no-op for stuff like doPriv calls. |
Beta Was this translation helpful? Give feedback.
-
Context is: https://openjdk.java.net/jeps/411 and #385
Deprecation warnings we see in JDK 17 on API that is marked for removal (probably with JDK 21 - next LTS) :
java.security.AccessController
java.lang.SecurityManager
java.lang.System.getSecurityManager()
Query for platform
Query for PDE
Query for JDT
Query for equinox
We should address that somehow.
My proposal would be: refactor all the Eclipse code that uses AccessController / SecurityManager and just remove everything (that can be removed) that references that API.
However I see there are open questions that need some answers / discussion.
Beta Was this translation helpful? Give feedback.
All reactions