-
Bug
-
Resolution: Fixed
-
P3
-
7
-
b130
-
generic
-
generic
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2185250 | 6-pool | Stephen Fitch | P3 | Closed | Won't Fix |
JDK: 1.4, 1.5, 6b105(RI), 6u16, 7
Platform: Windows, Solaris
Failing JCK test: api/javax_swing/text/Keymap/index.html#Keymap[Keymap010]
The following minimized code sample:
-------------------------------------------------------------
import javax.swing.*;
import javax.swing.text.Keymap;
import java.awt.event.ActionEvent;
public class MiniTest {
public static void main(String[] args) {
Keymap keyMap = new JTextPane().getKeymap();
keyMap.setResolveParent(keyMap);
new JTextPane().getKeymap().getKeyStrokesForAction(new AbstractAction() {
public void actionPerformed(ActionEvent e) { }
});
}
}
-------------------------------------------------------------
Causes:
Exception in thread "main" java.lang.StackOverflowError
at javax.swing.text.JTextComponent$DefaultKeymap.getKeyStrokesForAction(JTextComponent.java:4143)
at javax.swing.text.JTextComponent$DefaultKeymap.getKeyStrokesForAction(JTextComponent.java:4160)
at javax.swing.text.JTextComponent$DefaultKeymap.getKeyStrokesForAction(JTextComponent.java:4160)
at javax.swing.text.JTextComponent$DefaultKeymap.getKeyStrokesForAction(JTextComponent.java:4160)
.........
Platform: Windows, Solaris
Failing JCK test: api/javax_swing/text/Keymap/index.html#Keymap[Keymap010]
The following minimized code sample:
-------------------------------------------------------------
import javax.swing.*;
import javax.swing.text.Keymap;
import java.awt.event.ActionEvent;
public class MiniTest {
public static void main(String[] args) {
Keymap keyMap = new JTextPane().getKeymap();
keyMap.setResolveParent(keyMap);
new JTextPane().getKeymap().getKeyStrokesForAction(new AbstractAction() {
public void actionPerformed(ActionEvent e) { }
});
}
}
-------------------------------------------------------------
Causes:
Exception in thread "main" java.lang.StackOverflowError
at javax.swing.text.JTextComponent$DefaultKeymap.getKeyStrokesForAction(JTextComponent.java:4143)
at javax.swing.text.JTextComponent$DefaultKeymap.getKeyStrokesForAction(JTextComponent.java:4160)
at javax.swing.text.JTextComponent$DefaultKeymap.getKeyStrokesForAction(JTextComponent.java:4160)
at javax.swing.text.JTextComponent$DefaultKeymap.getKeyStrokesForAction(JTextComponent.java:4160)
.........
- backported by
-
JDK-2185250 Method JTextComponent.getKeyStrokesForAction() throws StackOverflowError
- Closed