On Tue, 12 Jul 2022 09:44:52 GMT, Prasanta Sadhukhan <psadhuk...@openjdk.org> 
wrote:

> `recursionCount` counter added in fix of JDK-8224267 is only reset when limit 
> is reached,  so it will behave incorrectly if JOptionPane.showMessageDialog 
> continuously with the same message having newlines, so it needs to be reset 
> also at appropriate location. 
> Fix to reset the counter before the recursive method is called.
> 
> Also, fix added to indicate the original message is truncated by adding ... 
> (ellipsis) to the previous line of text if it recurses more than limit set.

This pull request has now been integrated.

Changeset: 6e18883d
Author:    Prasanta Sadhukhan <psadhuk...@openjdk.org>
URL:       
https://git.openjdk.org/jdk/commit/6e18883d8ffd9a7b7d495da05e9859dc1d1a2677
Stats:     5 lines in 2 files changed: 4 ins; 0 del; 1 mod

8290162: Reset recursion counter missed in fix of JDK-8224267

Reviewed-by: prr

-------------

PR: https://git.openjdk.org/jdk/pull/9464

Reply via email to