You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Andrey Pavlenko (JIRA)" <ji...@apache.org> on 2007/01/25 13:07:49 UTC

[jira] Commented: (HARMONY-2447) [classlib][awt] java.awt.ScrollPaneAdjustable.setValueIsAdjusting(true) does not throw ArrayIndexOutOfBoundsException

    [ https://issues.apache.org/jira/browse/HARMONY-2447?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12467341 ] 

Andrey Pavlenko commented on HARMONY-2447:
------------------------------------------

It looks like RI issue. I think this issue could be closed as non-bug diff.

> [classlib][awt] java.awt.ScrollPaneAdjustable.setValueIsAdjusting(true) does not throw ArrayIndexOutOfBoundsException
> ---------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2447
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2447
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Pavel Dolgov
>            Priority: Minor
>
> Test case:
> ---------------
> import java.awt.ScrollPane;
> import java.awt.ScrollPaneAdjustable;
> import junit.framework.TestCase;
> public class TheTest extends TestCase {
>     public static void main(String args[]) {
>         junit.textui.TestRunner.run(TheTest.class);
>     }
>     public void testcase1() {
>         ScrollPane pane = new ScrollPane();
>         ScrollPaneAdjustable obj=(ScrollPaneAdjustable) pane.getHAdjustable();
>         try {
>             obj.setValueIsAdjusting(true);
>             fail("ArrayIndexOutOfBoundsException expected");
>         } catch (ArrayIndexOutOfBoundsException e) {
>         } catch (Exception e) {
>             fail(e.getMessage());
>         }
>     }
> }
> RI output:
> -----------------
> .
> Time: 0,13
> OK (1 test)
> Harmony output:
> ------------------
> .F
> Time: 0.59
> There was 1 failure:
> 1) testcase1(TheTest)junit.framework.AssertionFailedError: ArrayIndexOutOfBoundsException expected
> 	at TheTest.testcase1(TheTest.java:17)
> 	at java.lang.reflect.VMReflection.invokeMethod(Native Method)
> 	at TheTest.main(TheTest.java:9)
> FAILURES!!!
> Tests run: 1,  Failures: 1,  Errors: 0

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