On Mon, Feb 23, 2009 at 11:08 AM, Charles Oliver Nutter (JIRA)
<[email protected]> wrote:
> pid-returning methods should make a best effort to get a real pid
> On Sun/OpenJDK, we can at least dig out via reflection the actual pid and use
> that. It would make those APIs much more useful, and under 1.9 mode make
> Kernel#spawn work when used in tests.
There is also RuntimeMXBean.getName()
This also returns pid on Sun/OpenJDK, but this behaviour can't be
relied on since the specification doesn't say that "name" must be
represented by the process id, so perhaps reflection is a safer
choice.
/Lars
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email