RFR: 8224267: JOptionPane message string with 5000+ newlines produces StackOverflowError [v3]
Alexey Ivanov
aivanov at openjdk.org
Mon Jul 11 11:58:40 UTC 2022
On Mon, 11 Jul 2022 11:34:49 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:
> I guess if it's not successive, it will not exercise this condition so it will not recurse as much
>
> ```
> if (nl >= 0) {
> // break up newlines
> if (nl == 0) {
> ```
In that sense? I thought about successive in this case like `\n\n\n` but it applies to *all the new lines* in a one message.
-------------
PR: https://git.openjdk.org/jdk/pull/9388
More information about the client-libs-dev
mailing list