Scala Compile Server Exception

Does anyone know what this is about?

Is this because I am trying to compile under JDK18?

Cheers, Eric

2021-11-26
12:34 p.m. Scala Compile Server
Exception in thread “NGServer(localhost/127.0.0.1, 3200,3ff8e4d5-d9af-45ae-bd26-34e5ca253b16)” java.lang.UnsupportedOperationException: The Security Manager is deprecated and will be removed in a future release
at java.base/java.lang.System.setSecurityManager(System.java:419)
at com.martiansoftware.nailgun.NGServer.run(NGServer.java:396)
at java.base/java.lang.Thread.run(Thread.java:1493)

Thos was deprecated in JDK 17 but maybe JDK 18 which is only available as Early access has gone further. The Scala dev team are not likely to be prioritising work on bleeding edge JDKs.

This appears to be a Nailgun issue rather than a Scala issue per se.

For context, https://github.com/facebook/nailgun/issues/134

1 Like

Thanks, @SethTisue, that clearly explains things.

Note that in Scala Plugin 2021.3 we added a cosmetic workaround:
We ignore this warning output and do not show this output as a notification to the user.

(IJ Scala Plugin Compile Server uses Nailgun under the hood)