7023019: Constructor of class java.awt.Component.FlipBufferStrategy throws unspecified IAE
Reviewed-by: dcherepanov, art
--- 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