RFR: 8339487: ProcessHandleImpl native exceptions - include message text and last error information

Alan Bateman alanb at openjdk.org
Tue Sep 3 15:34:25 UTC 2024


On Tue, 3 Sep 2024 14:46:00 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:

> > ProcessHandle.children doesn't specify RuntimeException so I assume that needs to be looked into.
> 
> Should we add RuntimeException to the javadoc ? Or throw some other exception ?

Are the cases that you ran into all due to allocation failing? In many areas of the libraries, the JNI code throws OOME when a native allocation fails (which can be confusing as it's not Java heap but there isn't another error to throw).

-------------

PR Comment: https://git.openjdk.org/jdk/pull/20839#issuecomment-2326826055


More information about the core-libs-dev mailing list