On Wed, 6 Jul 2022 05:57:00 GMT, Prasanta Sadhukhan <[email protected]> wrote:
> BasicOptionPaneUI.addMessageComponents() uses recursion to split message > strings at newlines, generating a StackOverflowError when the message string > contains an unusually large number of newlines. > Fixed by catching StackOverflow and ignoring so that application is not stuck. 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`. ------------- PR: https://git.openjdk.org/jdk/pull/9388
