harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Denis Kishenko (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-2406) [classlib][awt] j.a.e.KeyEvent.getKeyText(int) thows StringIndexOutOfBoundsException while RI doesn't
Date Mon, 04 Dec 2006 11:44:23 GMT
[classlib][awt] j.a.e.KeyEvent.getKeyText(int) thows StringIndexOutOfBoundsException while
RI doesn't

                 Key: HARMONY-2406
                 URL: http://issues.apache.org/jira/browse/HARMONY-2406
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
            Reporter: Denis Kishenko

For java.awt.event.KeyEvent.getKeyText(int keyCode) method - Harmony throws java.lang.StringIndexOutOfBoundsException
if keyCode does not equal a key constant for a physical key on the keyboard while RI does
not. There is no mention about this situation in java spec

============ Test ==============
import java.awt.event.KeyEvent;

import java.awt.event.KeyEvent;

public class Test {
   public static void main(String[] argv) {

========= RI ========

======== Harmony =====
    at java.lang.String.charAt(String.java:585)
    at java.awt.event.KeyEvent.getDefaultName(KeyEvent.java:486)
    at java.awt.event.KeyEvent.getKeyText(KeyEvent.java:474)
    at Test.main(Test.java:11)

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


View raw message