Review request #1: 6863566 (Java should support the startup notification specification)

Michael McMahon Michael.McMahon at Sun.COM
Fri Oct 16 11:21:56 UTC 2009

Damjan Jovanovic wrote:
> The environment variable:
> * Must not be inherited by child processes
> * Ideally, should not be seen by Java apps
> AFAIK Java has no API to unset environment variables.
It is possible to manipulate the environment passed to
sub-processes though. However, the spec is clear on the point
that :-

"environment variables which are not modified by Java code will have
  an unmodified native representation in the subprocess."

I wonder if it might make sense to change this, so that some kind
of default filtering could be applied? I don't know if it warrants a new API
to do this, but maybe a system property could define a list of environment
variables that are not passed to child processes. And this could be used
in the desktop launcher scripts.

- Michael.

More information about the core-libs-dev mailing list