RFR: 8316388: Opensource five Swing component related regression tests [v3]

Alexander Zuev kizune at openjdk.org
Thu Mar 14 10:34:06 UTC 2024


On Thu, 14 Mar 2024 09:59:43 GMT, Alexey Ivanov <aivanov at openjdk.org> wrote:

>> test/jdk/javax/swing/JEditorPane/bug4325606.java line 100:
>> 
>>> 98:                 Utilities.getRowStart(pane, pane.getCaretPosition());
>>> 99:             } catch (BadLocationException blex) {
>>> 100:                 throw new RuntimeException("Test failed.");
>> 
>> Suggestion:
>> 
>>                 throw new RuntimeException("Test failed.", blex);
>> 
>> Preserve the original exception as it shows where the problem occurred.
>
> The only thing left… I consider it important.

Done.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/18259#discussion_r1524611456


More information about the client-libs-dev mailing list