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/06 13:50:21 UTC
[jira] Created: (HARMONY-2491) [classlib][awt]
java.awt.event.KeyEvent(...., int keyLocation) does not throw IAE while RI
does
[classlib][awt] java.awt.event.KeyEvent(...., int keyLocation) does not throw IAE while RI does
-----------------------------------------------------------------------------------------------
Key: HARMONY-2491
URL: http://issues.apache.org/jira/browse/HARMONY-2491
Project: Harmony
Issue Type: Bug
Components: Classlib
Reporter: Pavel Dolgov
Priority: Minor
Test case:
--------------
import java.awt.Container;
import java.awt.event.KeyEvent;
import junit.framework.TestCase;
public class TheTest extends TestCase {
public static void main(String args[]) {
junit.textui.TestRunner.run(TheTest.class);
}
public void testcase1() {
int keyLoc = 5; // 0 - 4 range
try {
new KeyEvent(new Container(), (-1), 62554L, 5, 1, '\1', keyLoc);
fail("IllegalArgumentException expected");
} catch (IllegalArgumentException e) {
}
}
}
RI output:
-------------
.
Time: 0,191
OK (1 test)
Harmony output:
-------------
.F
Time: 0.501
There was 1 failure:
1) testcase1(TheTest)junit.framework.AssertionFailedError: IllegalArgumentException expected
at TheTest.testcase1(TheTest.java:16)
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] Resolved: (HARMONY-2491) [classlib][awt]
java.awt.event.KeyEvent(...., int keyLocation) does not throw IAE while RI
does
Posted by "Alexey Petrenko (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-2491?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alexey Petrenko resolved HARMONY-2491.
--------------------------------------
Resolution: Fixed
The patch has been applied.
Please verify.
> [classlib][awt] java.awt.event.KeyEvent(...., int keyLocation) does not throw IAE while RI does
> -----------------------------------------------------------------------------------------------
>
> Key: HARMONY-2491
> URL: https://issues.apache.org/jira/browse/HARMONY-2491
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Pavel Dolgov
> Assigned To: Alexey Petrenko
> Priority: Minor
> Attachments: HARMONY-2491-KeyEvent.patch, HARMONY-2491-KeyEventTest.patch
>
>
> Test case:
> --------------
> import java.awt.Container;
> import java.awt.event.KeyEvent;
> import junit.framework.TestCase;
> public class TheTest extends TestCase {
> public static void main(String args[]) {
> junit.textui.TestRunner.run(TheTest.class);
> }
> public void testcase1() {
> int keyLoc = 5; // 0 - 4 range
> try {
> new KeyEvent(new Container(), (-1), 62554L, 5, 1, '\1', keyLoc);
> fail("IllegalArgumentException expected");
> } catch (IllegalArgumentException e) {
> }
> }
> }
> RI output:
> -------------
> .
> Time: 0,191
> OK (1 test)
> Harmony output:
> -------------
> .F
> Time: 0.501
> There was 1 failure:
> 1) testcase1(TheTest)junit.framework.AssertionFailedError: IllegalArgumentException expected
> at TheTest.testcase1(TheTest.java:16)
> 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.
[jira] Closed: (HARMONY-2491) [classlib][awt]
java.awt.event.KeyEvent(...., int keyLocation) does not throw IAE while RI
does
Posted by "Alexey Petrenko (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-2491?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alexey Petrenko closed HARMONY-2491.
------------------------------------
> [classlib][awt] java.awt.event.KeyEvent(...., int keyLocation) does not throw IAE while RI does
> -----------------------------------------------------------------------------------------------
>
> Key: HARMONY-2491
> URL: https://issues.apache.org/jira/browse/HARMONY-2491
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Pavel Dolgov
> Assigned To: Alexey Petrenko
> Priority: Minor
> Attachments: HARMONY-2491-KeyEvent.patch, HARMONY-2491-KeyEventTest.patch
>
>
> Test case:
> --------------
> import java.awt.Container;
> import java.awt.event.KeyEvent;
> import junit.framework.TestCase;
> public class TheTest extends TestCase {
> public static void main(String args[]) {
> junit.textui.TestRunner.run(TheTest.class);
> }
> public void testcase1() {
> int keyLoc = 5; // 0 - 4 range
> try {
> new KeyEvent(new Container(), (-1), 62554L, 5, 1, '\1', keyLoc);
> fail("IllegalArgumentException expected");
> } catch (IllegalArgumentException e) {
> }
> }
> }
> RI output:
> -------------
> .
> Time: 0,191
> OK (1 test)
> Harmony output:
> -------------
> .F
> Time: 0.501
> There was 1 failure:
> 1) testcase1(TheTest)junit.framework.AssertionFailedError: IllegalArgumentException expected
> at TheTest.testcase1(TheTest.java:16)
> 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.
[jira] Updated: (HARMONY-2491) [classlib][awt]
java.awt.event.KeyEvent(...., int keyLocation) does not throw IAE while RI
does
Posted by "Alexei Zakharov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-2491?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alexei Zakharov updated HARMONY-2491:
-------------------------------------
Patch Info: [Patch Available]
> [classlib][awt] java.awt.event.KeyEvent(...., int keyLocation) does not throw IAE while RI does
> -----------------------------------------------------------------------------------------------
>
> Key: HARMONY-2491
> URL: https://issues.apache.org/jira/browse/HARMONY-2491
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Pavel Dolgov
> Priority: Minor
> Attachments: HARMONY-2491-KeyEvent.patch, HARMONY-2491-KeyEventTest.patch
>
>
> Test case:
> --------------
> import java.awt.Container;
> import java.awt.event.KeyEvent;
> import junit.framework.TestCase;
> public class TheTest extends TestCase {
> public static void main(String args[]) {
> junit.textui.TestRunner.run(TheTest.class);
> }
> public void testcase1() {
> int keyLoc = 5; // 0 - 4 range
> try {
> new KeyEvent(new Container(), (-1), 62554L, 5, 1, '\1', keyLoc);
> fail("IllegalArgumentException expected");
> } catch (IllegalArgumentException e) {
> }
> }
> }
> RI output:
> -------------
> .
> Time: 0,191
> OK (1 test)
> Harmony output:
> -------------
> .F
> Time: 0.501
> There was 1 failure:
> 1) testcase1(TheTest)junit.framework.AssertionFailedError: IllegalArgumentException expected
> at TheTest.testcase1(TheTest.java:16)
> 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.
[jira] Updated: (HARMONY-2491) [classlib][awt]
java.awt.event.KeyEvent(...., int keyLocation) does not throw IAE while RI
does
Posted by "Andrey Pavlenko (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-2491?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrey Pavlenko updated HARMONY-2491:
-------------------------------------
Attachment: HARMONY-2491-KeyEventTest.patch
HARMONY-2491-KeyEvent.patch
The patches are attached.
> [classlib][awt] java.awt.event.KeyEvent(...., int keyLocation) does not throw IAE while RI does
> -----------------------------------------------------------------------------------------------
>
> Key: HARMONY-2491
> URL: https://issues.apache.org/jira/browse/HARMONY-2491
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Pavel Dolgov
> Priority: Minor
> Attachments: HARMONY-2491-KeyEvent.patch, HARMONY-2491-KeyEventTest.patch
>
>
> Test case:
> --------------
> import java.awt.Container;
> import java.awt.event.KeyEvent;
> import junit.framework.TestCase;
> public class TheTest extends TestCase {
> public static void main(String args[]) {
> junit.textui.TestRunner.run(TheTest.class);
> }
> public void testcase1() {
> int keyLoc = 5; // 0 - 4 range
> try {
> new KeyEvent(new Container(), (-1), 62554L, 5, 1, '\1', keyLoc);
> fail("IllegalArgumentException expected");
> } catch (IllegalArgumentException e) {
> }
> }
> }
> RI output:
> -------------
> .
> Time: 0,191
> OK (1 test)
> Harmony output:
> -------------
> .F
> Time: 0.501
> There was 1 failure:
> 1) testcase1(TheTest)junit.framework.AssertionFailedError: IllegalArgumentException expected
> at TheTest.testcase1(TheTest.java:16)
> 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.
[jira] Assigned: (HARMONY-2491) [classlib][awt]
java.awt.event.KeyEvent(...., int keyLocation) does not throw IAE while RI
does
Posted by "Alexey Petrenko (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-2491?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alexey Petrenko reassigned HARMONY-2491:
----------------------------------------
Assignee: Alexey Petrenko
> [classlib][awt] java.awt.event.KeyEvent(...., int keyLocation) does not throw IAE while RI does
> -----------------------------------------------------------------------------------------------
>
> Key: HARMONY-2491
> URL: https://issues.apache.org/jira/browse/HARMONY-2491
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Pavel Dolgov
> Assigned To: Alexey Petrenko
> Priority: Minor
> Attachments: HARMONY-2491-KeyEvent.patch, HARMONY-2491-KeyEventTest.patch
>
>
> Test case:
> --------------
> import java.awt.Container;
> import java.awt.event.KeyEvent;
> import junit.framework.TestCase;
> public class TheTest extends TestCase {
> public static void main(String args[]) {
> junit.textui.TestRunner.run(TheTest.class);
> }
> public void testcase1() {
> int keyLoc = 5; // 0 - 4 range
> try {
> new KeyEvent(new Container(), (-1), 62554L, 5, 1, '\1', keyLoc);
> fail("IllegalArgumentException expected");
> } catch (IllegalArgumentException e) {
> }
> }
> }
> RI output:
> -------------
> .
> Time: 0,191
> OK (1 test)
> Harmony output:
> -------------
> .F
> Time: 0.501
> There was 1 failure:
> 1) testcase1(TheTest)junit.framework.AssertionFailedError: IllegalArgumentException expected
> at TheTest.testcase1(TheTest.java:16)
> 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.
[jira] Commented: (HARMONY-2491) [classlib][awt]
java.awt.event.KeyEvent(...., int keyLocation) does not throw IAE while RI
does
Posted by "Andrey Pavlenko (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-2491?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12477333 ]
Andrey Pavlenko commented on HARMONY-2491:
------------------------------------------
Alexey, the patch is applied as expected. You can close the issue. Thanks.
> [classlib][awt] java.awt.event.KeyEvent(...., int keyLocation) does not throw IAE while RI does
> -----------------------------------------------------------------------------------------------
>
> Key: HARMONY-2491
> URL: https://issues.apache.org/jira/browse/HARMONY-2491
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Pavel Dolgov
> Assigned To: Alexey Petrenko
> Priority: Minor
> Attachments: HARMONY-2491-KeyEvent.patch, HARMONY-2491-KeyEventTest.patch
>
>
> Test case:
> --------------
> import java.awt.Container;
> import java.awt.event.KeyEvent;
> import junit.framework.TestCase;
> public class TheTest extends TestCase {
> public static void main(String args[]) {
> junit.textui.TestRunner.run(TheTest.class);
> }
> public void testcase1() {
> int keyLoc = 5; // 0 - 4 range
> try {
> new KeyEvent(new Container(), (-1), 62554L, 5, 1, '\1', keyLoc);
> fail("IllegalArgumentException expected");
> } catch (IllegalArgumentException e) {
> }
> }
> }
> RI output:
> -------------
> .
> Time: 0,191
> OK (1 test)
> Harmony output:
> -------------
> .F
> Time: 0.501
> There was 1 failure:
> 1) testcase1(TheTest)junit.framework.AssertionFailedError: IllegalArgumentException expected
> at TheTest.testcase1(TheTest.java:16)
> 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.