ProcessHandleImpl.STARTTIME_PROCESS_UNKNOWN and STARTTIME_PROCESS_UNKNOWN

Roger Riggs roger.riggs at oracle.com
Wed Jun 15 19:34:14 UTC 2022


Hi,

They are useful as documentation on the interface to native, making them 
static would be constructive.

Thanks, Roger


On 6/15/22 2:58 PM, Andrey Turbanov wrote:
> Hello.
> I recently found a couple of unused constants in
> java.lang.ProcessHandleImpl class.
> They seem to serve only documentation purposes. I'm I right?
> If so, I think it's better to remove them or at least make them static.
>
>
> /* The start time should match any value.
>   * Typically, this is because the OS can not supply it.
>   * The process is known to exist but not the exact start time.
>   */
> private final long STARTTIME_ANY = 0L;
>
> /* The start time of a Process that does not exist. */
> private final long STARTTIME_PROCESS_UNKNOWN = -1;
>
>
> Andrey Turbanov



More information about the core-libs-dev mailing list