6902615: Method JTextComponent.getKeyStrokesForAction() throws StackOverflowError
authorrupashka
Thu, 27 Jan 2011 14:23:42 +0300
changeset 8138 d187e6ae178a
parent 7964 fda4ca3f7b24
child 8139 42edb817487b
6902615: Method JTextComponent.getKeyStrokesForAction() throws StackOverflowError Reviewed-by: peterz
jdk/src/share/classes/javax/swing/text/Keymap.java
--- 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
      */