You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Pavel Dolgov (JIRA)" <ji...@apache.org> on 2006/12/04 18:07:21 UTC
[jira] Created: (HARMONY-2447) [classlib][awt]
java.awt.ScrollPaneAdjustable.setValueIsAdjusting(true) does not throw
ArrayIndexOutOfBoundsException
[classlib][awt] java.awt.ScrollPaneAdjustable.setValueIsAdjusting(true) does not throw ArrayIndexOutOfBoundsException
---------------------------------------------------------------------------------------------------------------------
Key: HARMONY-2447
URL: http://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.
-
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
[jira] Commented: (HARMONY-2447) [classlib][awt]
java.awt.ScrollPaneAdjustable.setValueIsAdjusting(true) does not throw
ArrayIndexOutOfBoundsException
Posted by "Andrey Pavlenko (JIRA)" <ji...@apache.org>.
[ 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.