On Wed, 2 Apr 2025 16:02:45 GMT, Alexey Ivanov <aiva...@openjdk.org> wrote:
>> Open source several Swing text / html related regression tests. > > test/jdk/javax/swing/text/BoxView/BaselineTest.java line 114: > >> 112: doc.insertString(doc.getLength(), " Large Size Text ", set); >> 113: } catch (BadLocationException ble) { >> 114: } > > `BadLocationException` is not expected. If it occurs, the test should fail. > To avoid adding throws clauses, `BadLocationException` should be re-thrown > wrapped in `RuntimeException`. That was existing but I can change it. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/24364#discussion_r2025460480