You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Oleg Khaschansky (JIRA)" <ji...@apache.org> on 2006/10/25 16:37:17 UTC
[jira] Updated: (HARMONY-1965) [classlib][swing]
javax.swing.JList.addSelectionInterval(int, int) doesn't throw
IndexOutOfBoundsException if parameter < -1
[ http://issues.apache.org/jira/browse/HARMONY-1965?page=all ]
Oleg Khaschansky updated HARMONY-1965:
--------------------------------------
Attachment: harmony-1965test.patch
Patch for the unit test
> [classlib][swing] javax.swing.JList.addSelectionInterval(int, int) doesn't throw IndexOutOfBoundsException if parameter < -1
> ----------------------------------------------------------------------------------------------------------------------------
>
> Key: HARMONY-1965
> URL: http://issues.apache.org/jira/browse/HARMONY-1965
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Oleg Khaschansky
> Attachments: harmony-1965.patch, harmony-1965test.patch
>
>
> javax.swing.JList.addSelectionInterval(int, int) doesn't throw IndexOutOfBoundsException if parameter < -1
> javax.swing.JList.addSelectionInterval(int anchor,int lead)specification reads:
> IndexOutOfBoundsException - if either anchor or lead are less than -1
> The same is applicable to removeSelectionInterval and setSelectionInterval methods.
> Code for reproducing:
> import javax.swing.*;
> public class Test{
> public static void main(String[] args) {
> Object[] data = {"Icon", "Int", "trueitem3", "charsetitem4",
> "Color"};
> JList toRet = new JList(data);
> toRet.addSelectionInterval(1, -2);
> System.out.println("PASSED");
> }
> }
--
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