harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexei Zakharov (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (HARMONY-2538) [classlib][swing] javax.swing.undo.UndoManager.setLimit(int) throws unspecified ArrayIndexOutOfBoundsException
Date Wed, 07 Feb 2007 16:39:05 GMT

     [ https://issues.apache.org/jira/browse/HARMONY-2538?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Alexei Zakharov resolved HARMONY-2538.
--------------------------------------

    Resolution: Fixed

Thanks Denis & Dmitry. The patch was applied at the revesion 504609. Please check. 

> [classlib][swing] javax.swing.undo.UndoManager.setLimit(int) throws unspecified ArrayIndexOutOfBoundsException
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2538
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2538
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Denis Kishenko
>         Attachments: H2538-UndoManager.patch, H2538-UndoManagerTest.patch
>
>
> There is no mention about any exception in java spec for javax.swing.undo.UndoManager.setLimit(int)
> Harmony throws unspecified java.lang ArrayIndexOutOfBoundsException , but RI does not.
> Test for bug reproducing:
> import javax.swing.undo.*;
> public class Test {
>    public static void main(String[] argv) {
>                 UndoManager localUndoManager = new UndoManager();
>                 localUndoManager.setLimit(-5);
>    }
> }
> Output on RI:
> none
> Output on Harmony:
> java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 8
>         at java.util.Vector.elementAt(Vector.java:327)
>         at java.util.Vector.get(Vector.java:446)
>         at javax.swing.undo.UndoManager.trimEdits(UndoManager.java:163)
>         at javax.swing.undo.UndoManager.trimForLimit(UndoManager.java:243)
>         at javax.swing.undo.UndoManager.setLimit(UndoManager.java:170)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message