On Mon, 18 Sep 2023 18:04:00 GMT, Alexey Ivanov <[email protected]> wrote:
>> I believe the original issue occurred when invalid html tags were set in the >> constructor -`new JLabel(html)` >> [JDK-4245889](https://bugs.openjdk.org/browse/JDK-4245889). >> >> For making it headless I think it is probably sufficient to just create the >> label with invalid html tag then? > > I think so. > > You can also run the test in jdk1.2.0 or jdk1.2.2 to ensure it still > reproduces the problem and then confirm jdk1.3.0 doesn't reproduce it. > Without `invokeAndWait` and the lambda expression, it should compile fine. The original issue occurred at the constructor, confirmed by checking it using jdk1.2.2 Test has been made headless and reduced to following two lines. String html = "<html><bold>Foo</bold></html>"; new JLabel(html); ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/15769#discussion_r1329401495
