You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Alexey A. Ivanov (JIRA)" <ji...@apache.org> on 2006/10/13 15:58:25 UTC

[jira] Updated: (HARMONY-1866) [test][swing] j.s.t.StyleConstantsTest fails

     [ http://issues.apache.org/jira/browse/HARMONY-1866?page=all ]

Alexey A. Ivanov updated HARMONY-1866:
--------------------------------------

    Attachment: H1866-StyleConstantsTest.patch

String comparison is replaced with checking the number of attributes in AttributeSet and checking values of those attributes.

Also code creating swing components was moved to Event Dispatch Thread becuase non-thread-safe nature of swing components. This modification is aimed to minimize possible deadlocks.

> [test][swing] j.s.t.StyleConstantsTest fails
> --------------------------------------------
>
>                 Key: HARMONY-1866
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1866
>             Project: Harmony
>          Issue Type: Bug
>          Components: build - test - ci
>            Reporter: Alexey A. Ivanov
>         Attachments: H1866-build.xml.patch, H1866-StyleConstantsTest.patch
>
>
> From time to time unit test test javax.swing.text.StyleConstantsTest fails.
> The reason of failure is comparing of text representation of AttributeSet with a string, which is not robust since the order of attribute keys (which are used to generate string representation) may change, thus leading the test to fail.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira