Can parallelStream be used in Webstart applications?
a recent change in our webstart application triggered various
PermissionExceptions all over the place.
From injection failures in guice (tried to use reflection to update a
private member) to loading resources with getResource().
This was odd given that our application is started with all-permissions.
Moreover the application worked fine (using various functions, which
require elevated permissions) until a certain function was triggered.
So we think what, happens is that certain application classes are loaded
in the context of the restricted thread and are therefor unable to
While we could fix the above problem by passing our own ExecutorService
to the appropriate variant of the above method, we wonder what happens,
if the common ForkJoinPool is used by some code, that is not under our
control, say some linked framework or even the jdk itself.