On Mon, 24 Mar 2025 20:05:34 GMT, Michael Strauß <mstra...@openjdk.org> wrote:
>> 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()`. disagree: we are not codifying what the limit is, but showing the condition at the exception, for the sake of application developers. `ArrayList.set(int, T)` throws an exception specifying the offending index value. Not exactly the same situation, but the same spirit. ------------- PR Review Comment: https://git.openjdk.org/jfx/pull/1741#discussion_r2010860909