7023019: Constructor of class java.awt.Component.FlipBufferStrategy throws unspecified IAE
authordav
Wed, 09 Mar 2011 17:29:17 +0300
changeset 8752 b8b7c54b0c7a
parent 8517 c00233c30967
child 8753 1d3d51072dad
7023019: Constructor of class java.awt.Component.FlipBufferStrategy throws unspecified IAE Reviewed-by: dcherepanov, art
jdk/src/share/classes/java/awt/Component.java
--- a/jdk/src/share/classes/java/awt/Component.java	Sun Mar 06 20:32:49 2011 -0800
+++ b/jdk/src/share/classes/java/awt/Component.java	Wed Mar 09 17:29:17 2011 +0300
@@ -3873,6 +3873,11 @@
          * supported or met
          * @exception ClassCastException if the component is not a canvas or
          * window.
+         * @exception IllegalStateException if the component has no peer
+         * @exception IllegalArgumentException if {@code numBuffers} is less than two,
+         * or if {@code BufferCapabilities.isPageFlipping} is not
+         * {@code true}.
+         * @see #createBuffers(int, BufferCapabilities)
          */
         protected FlipBufferStrategy(int numBuffers, BufferCapabilities caps)
             throws AWTException