SecurityManager is deprecated and will be removed. As it happens we were using it only to intercept calls to System.exit in an integration test, while invoking the exiting method directly. We can just replace the calls to System.exit with exceptions and rip out the deprecated stuff entirely.
SecurityManager is deprecated and will be removed. As it happens we were using it only to intercept calls to
System.exit
in an integration test, while invoking the exiting method directly. We can just replace the calls toSystem.exit
with exceptions and rip out the deprecated stuff entirely.The code isn't pretty, but it gets the job done.