RFR: 8353309: Open source several Swing text tests
    Phil Race 
    prr at openjdk.org
       
    Wed Apr  2 19:29:50 UTC 2025
    
    
  
On Wed, 2 Apr 2025 16:02:45 GMT, Alexey Ivanov <aivanov at 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
    
    
More information about the client-libs-dev
mailing list