[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug classpath/22818] JLabel.setDisplayedMnemonic crashes if given char
From: |
gcc-bugzilla at gcc dot gnu dot org |
Subject: |
[Bug classpath/22818] JLabel.setDisplayedMnemonic crashes if given char is not found |
Date: |
16 Oct 2005 01:27:20 -0000 |
Caused by: java.lang.StringIndexOutOfBoundsException: String index out of
range: -1
at java.lang.String.charAt (String.java:476)
at javax.swing.JLabel.setDisplayedMnemonicIndex (JLabel.java:418)
at javax.swing.JLabel.setDisplayedMnemonic (JLabel.java:375)
at javax.swing.JLabel.setDisplayedMnemonic (JLabel.java:388)
Sun's javax does nothing on that case - also in Suns
JavaDoc there is no exception specified.
------- Comment #1 from from-classpath at savannah dot gnu dot org 2004-12-21
17:40 -------
Oh, another bug: CP setDisplayedMnemonic cares about
char case, Sun's does not.
------- Comment #2 from from-classpath at savannah dot gnu dot org 2004-12-21
21:23 -------
I just commited a fix to CVS.Can you please try it and test if all things are
fixed ? I will leave this bug open for now. You can close it when you verified
all stuff works as expected.
------- Comment #3 from from-classpath at savannah dot gnu dot org 2004-12-21
21:52 -------
I can't test it - my project compiles but does not run yet:
now IllegalThreadStateException in GtkWindowPeer.create - i'll try to report
later.
Looking at JLabel.java, seems its not right yet - Sun's code
finds mnemonic 'A' from String "aaa" - that means that
text should be also put to upper case.
------- Comment #4 from from-classpath at savannah dot gnu dot org 2004-12-21
22:41 -------
I forgot to commit a little change. Its in now.
------- Comment #5 from from-classpath at savannah dot gnu dot org 2004-12-22
12:19 -------
Tested with kaffe-cvs and small test program - all seems ok.
This bug can be closed.
------- Comment #6 from from-classpath at savannah dot gnu dot org 2004-12-22
13:51 -------
This means you applied my patches to kaffe CVS ? or did you used pure kaffe CVS
?
------- Comment #7 from from-classpath at savannah dot gnu dot org 2004-12-22
14:42 -------
This means you applied my patches to kaffe CVS ? or did you used pure kaffe CVS
?
------- Comment #8 from from-classpath at savannah dot gnu dot org 2004-12-22
16:12 -------
I copied JLabel.java by hand. (And the some other files)
As I understand I cant point kaffe directly to classpath CVS,
or can I?
------- Comment #9 from from-classpath at savannah dot gnu dot org 2004-12-22
16:46 -------
Bug fixed in CVS.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22818
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug classpath/22818] JLabel.setDisplayedMnemonic crashes if given char is not found,
gcc-bugzilla at gcc dot gnu dot org <=