# HG changeset patch # User dav # Date 1299680957 -10800 # Node ID b8b7c54b0c7ab64afe2840aec4757cc5c09d7549 # Parent c00233c309673266bdad4e5918670688646f6101 7023019: Constructor of class java.awt.Component.FlipBufferStrategy throws unspecified IAE Reviewed-by: dcherepanov, art diff -r c00233c30967 -r b8b7c54b0c7a 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