ProcessHandle::getPid
mark.reinhold at oracle.com
mark.reinhold at oracle.com
Fri Apr 7 15:10:43 UTC 2017
2017/4/7 7:45:38 -0700, roger.riggs at oracle.com:
> That's an unfortunate artifact of evolution.
> Process.getPid() was added early in 2014 and ProcessHandle a year later.
>
> Several iterations of ProcessHandle API explored Process being a
> subclass of ProcessHandle
> so the method names would be the same. When ProcessHandle was decoupled
> from Process
> the method name was retained for consistency.
I would think local consistency within the new `ProcessHandle` API would
be more important than external consistency with the legacy `Process` API.
Please consider fixing this.
- Mark
More information about the core-libs-dev
mailing list