Re: RFR: 8292016: Rework JLI_ReportErrorMessageSys [v19]

2022-09-22 Thread Julian Waters
> Second attempt at resolving > [JDK-8292016](https://bugs.openjdk.org/browse/JDK-8292016) with a less > intrusive approach this time > > Side note: While it might be preferred to remove this entirely, other areas > of the JDK also use the same flawed logic, and removing this would simply > p

Re: RFR: 8292016: Rework JLI_ReportErrorMessageSys [v18]

2022-09-22 Thread Julian Waters
> Second attempt at resolving > [JDK-8292016](https://bugs.openjdk.org/browse/JDK-8292016) with a less > intrusive approach this time > > Side note: While it might be preferred to remove this entirely, other areas > of the JDK also use the same flawed logic, and removing this would simply > p

Re: RFR: 8292016: Rework JLI_ReportErrorMessageSys [v17]

2022-09-22 Thread Julian Waters
> Second attempt at resolving > [JDK-8292016](https://bugs.openjdk.org/browse/JDK-8292016) with a less > intrusive approach this time > > Side note: While it might be preferred to remove this entirely, other areas > of the JDK also use the same flawed logic, and removing this would simply > p

Re: RFR: 8292016: Rework JLI_ReportErrorMessageSys [v16]

2022-09-22 Thread Julian Waters
> Second attempt at resolving > [JDK-8292016](https://bugs.openjdk.org/browse/JDK-8292016) with a less > intrusive approach this time > > Side note: While it might be preferred to remove this entirely, other areas > of the JDK also use the same flawed logic, and removing this would simply > p

Re: RFR: 8292016: Rework JLI_ReportErrorMessageSys [v15]

2022-09-22 Thread Julian Waters
> Second attempt at resolving > [JDK-8292016](https://bugs.openjdk.org/browse/JDK-8292016) with a less > intrusive approach this time > > Side note: While it might be preferred to remove this entirely, other areas > of the JDK also use the same flawed logic, and removing this would simply > p

Re: RFR: 8292016: Rework JLI_ReportErrorMessageSys [v14]

2022-09-22 Thread Julian Waters
> Second attempt at resolving > [JDK-8292016](https://bugs.openjdk.org/browse/JDK-8292016) with a less > intrusive approach this time > > Side note: While it might be preferred to remove this entirely, other areas > of the JDK also use the same flawed logic, and removing this would simply > p

Re: RFR: 8292016: Rework JLI_ReportErrorMessageSys [v13]

2022-09-21 Thread Julian Waters
> Second attempt at resolving > [JDK-8292016](https://bugs.openjdk.org/browse/JDK-8292016) with a less > intrusive approach this time > > Side note: While it might be preferred to remove this entirely, other areas > of the JDK also use the same flawed logic, and removing this would simply > p

Re: RFR: 8292016: Rework JLI_ReportErrorMessageSys [v10]

2022-08-20 Thread Thomas Stuefe
On Thu, 18 Aug 2022 15:46:04 GMT, Julian Waters wrote: > Initially I did intend to do that, but a raw GetLastError wouldn't exactly be > very helpful when a failure does occur I disagree. Error codes are well documented, unlike posix errno with defined numerical values, and often more helpful

Re: RFR: 8292016: Rework JLI_ReportErrorMessageSys [v10]

2022-08-18 Thread Thomas Stuefe
On Thu, 18 Aug 2022 11:23:00 GMT, Julian Waters wrote: > I don't quite get what you mean? The only thing JLI_ReportErrorMessageSys has above JLI_ReportErrorMessage is that it prints the error code for you, and that is a very slim win. It turns into a loss quickly if it does that one thing wron

Re: RFR: 8292016: Rework JLI_ReportErrorMessageSys [v10]

2022-08-18 Thread Julian Waters
On Thu, 18 Aug 2022 09:55:59 GMT, Thomas Stuefe wrote: >> 8291917 was simply about making error messages more informative on Windows >> when loading the C Runtime or Java Virtual Machine dlls failed (Right now it >> just prints an unhelpful "Error: loading: ...") - It consequently depended >>

Re: RFR: 8292016: Rework JLI_ReportErrorMessageSys [v10]

2022-08-18 Thread Thomas Stuefe
On Thu, 18 Aug 2022 09:46:56 GMT, Julian Waters wrote: >> Let's back up a bit. >> >> I looked again, and think @dholmes-ora was originally right when he wrote >> that this coding does not get called on Windows. Not sure why I thought >> differently, but I cannot find a single callsite on windo

Re: RFR: 8292016: Rework JLI_ReportErrorMessageSys [v10]

2022-08-18 Thread Julian Waters
On Thu, 18 Aug 2022 08:52:36 GMT, Thomas Stuefe wrote: >> I was mainly concerned with Thomas's objection that having both would simply >> be misleading, though now that you say that, maybe this warning combined >> with both could be a good compromise. >> >> @tstuefe thoughts? > > Let's back up

Re: RFR: 8292016: Rework JLI_ReportErrorMessageSys [v12]

2022-08-18 Thread Julian Waters
> Second attempt at resolving > [JDK-8292016](https://bugs.openjdk.org/browse/JDK-8292016) with a less > intrusive approach this time > > Side note: While it might be preferred to remove this entirely, other areas > of the JDK also use the same flawed logic, and removing this would simply > p

Re: RFR: 8292016: Rework JLI_ReportErrorMessageSys [v10]

2022-08-18 Thread Thomas Stuefe
On Thu, 18 Aug 2022 08:10:34 GMT, Julian Waters wrote: >> src/java.base/windows/native/libjli/java_md.c line 621: >> >>> 619: char *errtext = NULL; >>> 620: >>> 621: char* const conflict = "Java detected conflicting Windows and C >>> Runtime errors and is unable to provide an accurate

Re: RFR: 8292016: Rework JLI_ReportErrorMessageSys [v11]

2022-08-18 Thread Thomas Stuefe
On Thu, 18 Aug 2022 08:23:22 GMT, Julian Waters wrote: >> Second attempt at resolving >> [JDK-8292016](https://bugs.openjdk.org/browse/JDK-8292016) with a less >> intrusive approach this time >> >> Side note: While it might be preferred to remove this entirely, other areas >> of the JDK also

Re: RFR: 8292016: Rework JLI_ReportErrorMessageSys [v10]

2022-08-18 Thread Julian Waters
On Thu, 18 Aug 2022 02:36:37 GMT, David Holmes wrote: >> Julian Waters has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Cleanup > > src/java.base/unix/native/libjli/java_md_common.c line 213: > >> 211: */ >> 212: char er

Re: RFR: 8292016: Rework JLI_ReportErrorMessageSys [v11]

2022-08-18 Thread Julian Waters
> Second attempt at resolving > [JDK-8292016](https://bugs.openjdk.org/browse/JDK-8292016) with a less > intrusive approach this time > > Side note: While it might be preferred to remove this entirely, other areas > of the JDK also use the same flawed logic, and removing this would simply > p

Re: RFR: 8292016: Rework JLI_ReportErrorMessageSys [v10]

2022-08-18 Thread Julian Waters
On Thu, 18 Aug 2022 02:39:55 GMT, David Holmes wrote: >> Julian Waters has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Cleanup > > src/java.base/windows/native/libjli/java_md.c line 621: > >> 619: char *errtext = NULL; >> 620: >>

Re: RFR: 8292016: Rework JLI_ReportErrorMessageSys [v10]

2022-08-17 Thread David Holmes
On Tue, 16 Aug 2022 10:23:31 GMT, Julian Waters wrote: >> Second attempt at resolving >> [JDK-8292016](https://bugs.openjdk.org/browse/JDK-8292016) with a less >> intrusive approach this time >> >> Side note: While it might be preferred to remove this entirely, other areas >> of the JDK also

Re: RFR: 8292016: Rework JLI_ReportErrorMessageSys [v10]

2022-08-16 Thread Julian Waters
> Second attempt at resolving > [JDK-8292016](https://bugs.openjdk.org/browse/JDK-8292016) with a less > intrusive approach this time > > Side note: While it might be preferred to remove this entirely, other areas > of the JDK also use the same flawed logic, and removing this would simply > p

Re: RFR: 8292016: Rework JLI_ReportErrorMessageSys [v9]

2022-08-16 Thread Julian Waters
> Second attempt at resolving > [JDK-8292016](https://bugs.openjdk.org/browse/JDK-8292016) with a less > intrusive approach this time > > Side note: While it might be preferred to remove this entirely, other areas > of the JDK also use the same flawed logic, and removing this would simply > p

Re: RFR: 8292016: Rework JLI_ReportErrorMessageSys [v8]

2022-08-15 Thread Julian Waters
> Second attempt at resolving > [JDK-8292016](https://bugs.openjdk.org/browse/JDK-8292016) with a less > intrusive approach this time > > Side note: While it might be preferred to remove this entirely, other areas > of the JDK also use the same flawed logic, and removing this would simply > p

Re: RFR: 8292016: Rework JLI_ReportErrorMessageSys [v7]

2022-08-15 Thread Julian Waters
> Second attempt at resolving > [JDK-8292016](https://bugs.openjdk.org/browse/JDK-8292016) with a less > intrusive approach this time > > Side note: While it might be preferred to remove this entirely, other areas > of the JDK also use the same flawed logic, and removing this would simply > p

Re: RFR: 8292016: Rework JLI_ReportErrorMessageSys [v6]

2022-08-15 Thread Julian Waters
> Second attempt at resolving > [JDK-8292016](https://bugs.openjdk.org/browse/JDK-8292016) with a less > intrusive approach this time > > Side note: While it might be preferred to remove this entirely, other areas > of the JDK also use the same flawed logic, and removing this would simply > p

Re: RFR: 8292016: Rework JLI_ReportErrorMessageSys [v5]

2022-08-15 Thread Julian Waters
> Second attempt at resolving > [JDK-8292016](https://bugs.openjdk.org/browse/JDK-8292016) with a less > intrusive approach this time > > Side note: While it might be preferred to remove this entirely, other areas > of the JDK also use the same flawed logic, and removing this would simply > p

Re: RFR: 8292016: Rework JLI_ReportErrorMessageSys [v4]

2022-08-15 Thread Julian Waters
> Second attempt at resolving > [JDK-8292016](https://bugs.openjdk.org/browse/JDK-8292016) with a less > intrusive approach this time > > Side note: While it might be preferred to remove this entirely, other areas > of the JDK also use the same flawed logic, and removing this would simply > p

Re: RFR: 8292016: Rework JLI_ReportErrorMessageSys [v3]

2022-08-14 Thread Julian Waters
> Second attempt at resolving > [JDK-8292016](https://bugs.openjdk.org/browse/JDK-8292016) with a less > intrusive approach this time > > Side note: While it might be preferred to remove this entirely, other areas > of the JDK also use the same flawed logic, and removing this would simply > p

Re: RFR: 8292016: Rework JLI_ReportErrorMessageSys [v2]

2022-08-14 Thread Julian Waters
> Second attempt at resolving > [JDK-8292016](https://bugs.openjdk.org/browse/JDK-8292016) with a less > intrusive approach this time > > Side note: While it might be preferred to remove this entirely, other areas > of the JDK also use the same flawed logic, and removing this would simply > p

RFR: 8292016: Rework JLI_ReportErrorMessageSys

2022-08-14 Thread Julian Waters
Second attempt at resolving [JDK-8292016](https://bugs.openjdk.org/browse/JDK-8292016) with a less intrusive approach this time (Clearing the error after the call, which is done in other areas of the JDK as well) Side note: While it might be preferred to remove this entirely, other areas of th

Re: RFR: 8292016: Rework JLI_ReportErrorMessageSys [v12]

2022-08-14 Thread Julian Waters
On Mon, 8 Aug 2022 18:02:18 GMT, Julian Waters wrote: >> JLI_ReportErrorMessageSys has a number of issues, as listed in the linked >> issue, since it's not widely used, it's easier to remove it and replace the >> areas it's called in with simpler calls to other error reporting functions: > > Ju

Re: RFR: 8292016: Rework JLI_ReportErrorMessageSys [v12]

2022-08-08 Thread Julian Waters
> JLI_ReportErrorMessageSys has a number of issues, as listed below: > > - The windows variant prints message, then extra-info if available, but the > Unix variant prints first extra-info, then message on a newline. Standardize > both to print their system errors on newlines below the message. >

Re: RFR: 8292016: Rework JLI_ReportErrorMessageSys [v11]

2022-08-08 Thread Julian Waters
On Mon, 8 Aug 2022 16:25:41 GMT, Julian Waters wrote: >> JLI_ReportErrorMessageSys has a number of issues, as listed below: >> >> - The windows variant prints message, then extra-info if available, but the >> Unix variant prints first extra-info, then message on a newline. Standardize >> both

Re: RFR: 8292016: Rework JLI_ReportErrorMessageSys [v11]

2022-08-08 Thread Julian Waters
> JLI_ReportErrorMessageSys has a number of issues, as listed below: > > - The windows variant prints message, then extra-info if available, but the > Unix variant prints first extra-info, then message on a newline. Standardize > both to print their system errors on newlines below the message. >

Re: RFR: 8292016: Rework JLI_ReportErrorMessageSys [v10]

2022-08-08 Thread Julian Waters
> JLI_ReportErrorMessageSys has a number of issues, as listed below: > > - The windows variant prints message, then extra-info if available, but the > Unix variant prints first extra-info, then message on a newline. Standardize > both to print their system errors on newlines below the message. >

Re: RFR: 8292016: Rework JLI_ReportErrorMessageSys [v9]

2022-08-08 Thread Thomas Stuefe
On Mon, 8 Aug 2022 13:25:22 GMT, Julian Waters wrote: >> JLI_ReportErrorMessageSys has a number of issues, as listed below: >> >> - The windows variant prints message, then extra-info if available, but the >> Unix variant prints first extra-info, then message on a newline. Standardize >> both

Re: RFR: 8292016: Rework JLI_ReportErrorMessageSys [v8]

2022-08-08 Thread Julian Waters
On Mon, 8 Aug 2022 12:14:50 GMT, Julian Waters wrote: >> JLI_ReportErrorMessageSys has a number of issues, as listed below: >> >> - The windows variant prints message, then extra-info if available, but the >> Unix variant prints first extra-info, then message on a newline. Standardize >> both

Re: RFR: 8292016: Rework JLI_ReportErrorMessageSys [v9]

2022-08-08 Thread Julian Waters
> JLI_ReportErrorMessageSys has a number of issues, as listed below: > > - The windows variant prints message, then extra-info if available, but the > Unix variant prints first extra-info, then message on a newline. Standardize > both to print their system errors on newlines below the message. >

Re: RFR: 8292016: Rework JLI_ReportErrorMessageSys [v7]

2022-08-08 Thread Julian Waters
On Mon, 8 Aug 2022 09:06:39 GMT, David Holmes wrote: >> Julian Waters has updated the pull request incrementally with one additional >> commit since the last revision: >> >> I feel stupid > > src/java.base/unix/native/libjli/java_md_common.c line 209: > >> 207: /* >> 208: * TODO: it

Re: RFR: 8292016: Rework JLI_ReportErrorMessageSys [v8]

2022-08-08 Thread Julian Waters
On Mon, 8 Aug 2022 12:14:50 GMT, Julian Waters wrote: >> JLI_ReportErrorMessageSys has a number of issues, as listed below: >> >> - The windows variant prints message, then extra-info if available, but the >> Unix variant prints first extra-info, then message on a newline. Standardize >> both

Re: RFR: 8292016: Rework JLI_ReportErrorMessageSys [v7]

2022-08-08 Thread Julian Waters
On Mon, 8 Aug 2022 09:06:39 GMT, David Holmes wrote: >> Julian Waters has updated the pull request incrementally with one additional >> commit since the last revision: >> >> I feel stupid > > src/java.base/unix/native/libjli/java_md_common.c line 209: > >> 207: /* >> 208: * TODO: it

Re: RFR: 8292016: Rework JLI_ReportErrorMessageSys [v8]

2022-08-08 Thread Julian Waters
> JLI_ReportErrorMessageSys has a number of issues, as listed below: > > - The windows variant prints message, then extra-info if available, but the > Unix variant prints first extra-info, then message on a newline. Standardize > both to print their system errors on newlines below the message. >

Re: RFR: 8292016: Rework JLI_ReportErrorMessageSys [v7]

2022-08-08 Thread David Holmes
On Mon, 8 Aug 2022 05:22:28 GMT, Julian Waters wrote: >> JLI_ReportErrorMessageSys has a number of issues, as listed below: >> >> - The windows variant prints message, then extra-info if available, but the >> Unix variant prints first extra-info, then message on a newline. Standardize >> both

Re: RFR: 8292016: Rework JLI_ReportErrorMessageSys [v7]

2022-08-07 Thread Julian Waters
> JLI_ReportErrorMessageSys has a number of issues, as listed below: > > - The windows variant prints message, then extra-info if available, but the > Unix variant prints first extra-info, then message on a newline. Standardize > both to print their system errors on newlines below the message. >

Re: RFR: 8292016: Rework JLI_ReportErrorMessageSys [v6]

2022-08-07 Thread Julian Waters
> JLI_ReportErrorMessageSys has a number of issues, as listed below: > > - The windows variant prints message, then extra-info if available, but the > Unix variant prints first extra-info, then message on a newline. Standardize > both to print their system errors on newlines below the message. >

Re: RFR: 8292016: Rework JLI_ReportErrorMessageSys [v5]

2022-08-07 Thread Julian Waters
> JLI_ReportErrorMessageSys has a number of issues, as listed below: > > - The windows variant prints message, then extra-info if available, but the > Unix variant prints first extra-info, then message on a newline. Standardize > both to print their system errors on newlines below the message. >

Re: RFR: 8292016: Rework JLI_ReportErrorMessageSys [v4]

2022-08-07 Thread Julian Waters
> JLI_ReportErrorMessageSys has a number of issues, as listed below: > > - The windows variant prints message, then extra-info if available, but the > Unix variant prints first extra-info, then message on a newline. Standardize > both to print their system errors on newlines below the message. >

Re: RFR: 8292016: Rework JLI_ReportErrorMessageSys [v3]

2022-08-07 Thread Julian Waters
> JLI_ReportErrorMessageSys has a number of issues, as listed below: > > - The windows variant prints message, then extra-info if available, but the > Unix variant prints first extra-info, then message on a newline. Standardize > both to print their system errors on newlines below the message. >

Re: RFR: 8292016: Rework JLI_ReportErrorMessageSys [v2]

2022-08-07 Thread Julian Waters
> JLI_ReportErrorMessageSys has a number of issues, as listed below: > > - The windows variant prints message, then extra-info if available, but the > Unix variant prints first extra-info, then message on a newline. Standardize > both to print their system errors on newlines below the message. >

RFR: 8292016: Rework JLI_ReportErrorMessageSys

2022-08-07 Thread Julian Waters
JLI_ReportErrorMessageSys has a number of issues, as listed below: - The windows variant prints message, then extra-info if available, but the Unix variant prints first extra-info, then message on a newline. Standardize both to print their system errors on newlines below the message. - The Wind