What are the alternatives to SecurityManager for sandboxing untrusted code in Java?
I’ve been working on a project that involves dynamically loading and executing third-party code. Obviously, this is inherently risky, and I need a way to sandbox the code and limit its permissions. Java’s SecurityManager has been useful (despite its complexity), but with it being deprecated and eventually removed, I’m left scrambling for alternatives.