RFR: 8282936: Write a regression test for JDK-4615365 [v2]
Sergey Bylokhov
serb at openjdk.java.net
Thu Mar 24 07:58:52 UTC 2022
On Tue, 22 Mar 2022 06:29:16 GMT, Manukumar V S <mvs at openjdk.org> wrote:
>> Write a regression test for [JDK-4615365](https://bugs.openjdk.java.net/browse/JDK-4615365) : JSplitPane current and last divider positions incorrect when realized
>>
>> Issue:
>> JSplitPane component with a left and right component has its current divider
>> position incorrectly set to -1 once it is fully realized. For JDK 1.3.1, its
>> value is set to 0. The current position of the divider should be the current
>> position of the divider once layout management is complete. If the divider is
>> moved one pixel, the current divider position is updated to the correct value
>> but the last divider position is then set to -1 (i.e. the last value of the
>> current divider position). If the divider is moved again, everything is OK.
>>
>> Testing:
>> Java 1.4.0 -> Test Failed.
>> $ j2sdk1.4.0/bin/java bug4615365
>> current= -1, last= 0
>> Test Failed.
>>
>> Java 1.4.1 -> Test Passed.
>> $ j2sdk1.4.1/bin/java bug4615365
>> current= 97, last= -1
>> Test Passed.
>
> Manukumar V S has updated the pull request incrementally with two additional commits since the last revision:
>
> - Removed extra blank line before import static
> - Review comment fixed: Limited 80 chars per line
Marked as reviewed by serb (Reviewer).
-------------
PR: https://git.openjdk.java.net/jdk/pull/7802
More information about the client-libs-dev
mailing list