RFR: 8224267: JOptionPane message string with 5000+ newlines produces StackOverflowError
Prasanta Sadhukhan
psadhukhan at openjdk.org
Fri Jul 8 13:15:32 UTC 2022
On Fri, 8 Jul 2022 12:13:31 GMT, Alexey Ivanov <aivanov at openjdk.org> wrote:
> Maybe we should rather limit the number of recursive calls? You caught `StackOverflowError`, at this stage there's not much space left on the stack. It may cause another `StackOverflowError`.
I thought that but then thought limiting will not be foolproof as stack size can be modified by -Xss.
-------------
PR: https://git.openjdk.org/jdk/pull/9388
More information about the client-libs-dev
mailing list