Integrated: 8282936: Write a regression test for JDK-4615365
Manukumar V S
mvs at openjdk.java.net
Tue Mar 29 11:16:57 UTC 2022
On Sun, 13 Mar 2022 13:54:47 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.
This pull request has now been integrated.
Changeset: c3d903a5
Author: Manukumar V S <mvs at openjdk.org>
Committer: Abdul Kolarkunnu <akolarkunnu at openjdk.org>
URL: https://git.openjdk.java.net/jdk/commit/c3d903a55a9f606db8604d5a8c091b0fc3c6a988
Stats: 200 lines in 1 file changed: 200 ins; 0 del; 0 mod
8282936: Write a regression test for JDK-4615365
Reviewed-by: serb
-------------
PR: https://git.openjdk.java.net/jdk/pull/7802
More information about the client-libs-dev
mailing list