6902615: Method JTextComponent.getKeyStrokesForAction() throws StackOverflowError
Reviewed-by: peterz
--- a/jdk/src/share/classes/javax/swing/text/Keymap.java Mon Jan 24 18:04:37 2011 +0300
+++ b/jdk/src/share/classes/javax/swing/text/Keymap.java Thu Jan 27 14:23:42 2011 +0300
@@ -137,6 +137,8 @@
/**
* Sets the parent keymap, which will be used to
* resolve key-bindings.
+ * The behavior is unspecified if a {@code Keymap} has itself
+ * as one of its resolve parents.
*
* @param parent the parent keymap
*/