<Swing Dev> RFR: 8197560: test javax/swing/JTree/8003400/Test8003400.java fails

Prasanta Sadhukhan prasanta.sadhukhan at oracle.com
Fri Jun 26 04:27:35 UTC 2020


Hi Pankaj,

I am not sure if making the test windows-only is right here as the 
8003400 fix was done in BasicTreeUI which is common for all L&F. If the 
8003400 bug is manifesting only in windows, then probably we need to 
move the bugfix to WindowsTreeUI before changing the test to windows-only.

Regards
Prasanta
On 26-Jun-20 12:47 AM, Pankaj Bansal wrote:
>
> Hi All,
>
> Please review the following test only fix for jdk16.
>
> Bug : https://bugs.openjdk.java.net/browse/JDK-8197560
> webrev: http://cr.openjdk.java.net/~pbansal/8197560/webrev00/ 
> <http://cr.openjdk.java.net/%7Epbansal/8197560/webrev00/>
>
> The test fails intermittently on Windows and always on Linux/Mac
>
> The test was added with the fix done for [1], which was Windows only 
> bug. I think the test was not tested on other platforms and it has 
> always been failing on other platforms.  [2] was filled soon after 
> adding the test for Solaris/Linux and Mac, which was later closed as 
> duplicate of current bug after making the current bug generic for all 
> platforms. The way test is calculating "outer.y" (subtracting 1) value 
> to check if the last tree node is visible, which seem to work only on 
> Windows.
>
> It also fails on Windows intermittently due to focus issue instability.
>
> To fix the test, either the test needs to be made Windows only or some 
> change needs to be done in calculation of "outer.y" to make it work on 
> all platforms. In the present fix, I have made the test Windows only 
> as it was added for a Windows only issue. I have made changes to 
> remove the instability due of focus issues. The test is always passing 
> after the fix. Mach5 job links in JBS.
>
>
> <https://bugs.openjdk.java.net/browse/JDK-8003400>
>
> [1] https://bugs.openjdk.java.net/browse/JDK-8003400 
> <https://bugs.openjdk.java.net/browse/JDK-8003400>
>
> [2] 
> <https://bugs.openjdk.java.net/browse/JDK-8003400>https://bugs.openjdk.java.net/browse/JDK-8011259
>
>
> Regards
> Pankaj
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/swing-dev/attachments/20200626/a7d01cde/attachment.htm>


More information about the swing-dev mailing list