changeset 3890:38ebd0682a54

7023019: Constructor of class java.awt.Component.FlipBufferStrategy throws unspecified IAE Reviewed-by: dcherepanov, art
author dav
date Wed, 09 Mar 2011 17:29:17 +0300
parents 8cd20d3e5448
children cb130134aacf
files src/share/classes/java/awt/Component.java
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/java/awt/Component.java	Sun Mar 06 20:32:49 2011 -0800
+++ b/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