harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey A. Ivanov (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-1917) [classlib][swing][test] unit test fails: j.s.t.GapContent_PositionTest.testShiftGapLeft
Date Thu, 19 Oct 2006 12:08:36 GMT
     [ http://issues.apache.org/jira/browse/HARMONY-1917?page=all ]

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

    Attachment: H1917-GapContent_PositionTest.patch

The only reason I see for this failure is the list where Positions are stored in GapContent
has less elements than expected. It can happen only if some of the returned Positions are
cleared by Garbage Collector. (This will happen at shiftGap() call.) This way storing the
Position objects guarantees the internal list has the same number of objects as expected.
(It is the content of the internal list of GapContent that is analysed in the test.)

This bug is hard to reproduce.

> [classlib][swing][test] unit test fails: j.s.t.GapContent_PositionTest.testShiftGapLeft
> ---------------------------------------------------------------------------------------
>
>                 Key: HARMONY-1917
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1917
>             Project: Harmony
>          Issue Type: Bug
>          Components: build - test - ci
>         Environment: Linux
>            Reporter: Alexey A. Ivanov
>         Attachments: H1917-GapContent_PositionTest.patch
>
>
> Several times I experienced failures of unit test javax.swing.text.GapContent_PositionTest.testShiftGapLeft()
when running tests on Linux:
> java.lang.IndexOutOfBoundsException at java.util.ArrayList.get(ArrayList.java:335) at
javax.swing.text.GapContent_PositionTest.checkPositions(GapContent_PositionTest.java:83) at
javax.swing.text.GapContent_PositionTest.testShiftGapLeft(GapContent_PositionTest.java:59)
at java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:25) at javax.swing.BasicSwingTestCase.runBareSuper(BasicSwingTestCase.java:117)
at javax.swing.BasicSwingTestCase.runBareImpl(BasicSwingTestCase.java:122) at javax.swing.BasicSwingTestCase$1.run(BasicSwingTestCase.java:136)
at java.lang.Thread.run(Thread.java:872)

-- 
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

        

Mime
View raw message