On Mon, 24 Mar 2025 19:56:21 GMT, Andy Goryachev <ango...@openjdk.org> wrote:
>> Unless you are going to track the actual depth, I'd probably leave it as is. >> When Java throws a StackOverflow it doesn't print the depth. > > what I meant is the exception should indicate the limit that triggered the > exception. > because it will likely be the first question the application developer asks > when seeing this exception. The limit is an implementation detail, and should not be elevated to specification. What application developers should be doing if they want to avoid hitting the limit, is call `Platform.canStartNestedEventLoop()`. ------------- PR Review Comment: https://git.openjdk.org/jfx/pull/1741#discussion_r2010852943