RFR: 8239502: [TEST_BUG] Test javax/swing/text/FlowView/6318524/bug6318524.java never fails

Sergey Bylokhov serb at openjdk.java.net
Thu Sep 23 19:13:57 UTC 2021


On Thu, 23 Sep 2021 18:41:38 GMT, Alexey Ivanov <aivanov at openjdk.org> wrote:

> The test is being moved from the closed to open. It's nearly a complete re-write of the original test.
> 
> I made the test headless by painting into image.
> 
> To detect failure, the test uses the position of the caret at the end of first line of the paragraph where the wrapping occurs.
> 
> I made sure that the updated test reproduces the original problem in [JDK-6318524](https://bugs.openjdk.java.net/browse/JDK-6318524). (There are some tweaks required to compile it with JDK 6.) The updated test fails when run with 6-b52. In fact, it also fails with 6-b53 up to 6-b76 where [JDK-6364882](https://bugs.openjdk.java.net/browse/JDK-6364882) is fixed.
> 
> The behaviour in 6-b76 coincides with that in the latest JDK.
> 
> [1] [JDK-6318524](https://bugs.openjdk.java.net/browse/JDK-6318524): Regression: views in paragraph are not children of Paragraph.Row is some cases
> [2] [JDK-6364882](https://bugs.openjdk.java.net/browse/JDK-6364882): Last line of a paragraph should not be justified

Marked as reviewed by serb (Reviewer).

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

PR: https://git.openjdk.java.net/jdk/pull/5660



More information about the client-libs-dev mailing list