提交 a3ebe2b9 编写于 作者: D dav

7023019: Constructor of class java.awt.Component.FlipBufferStrategy throws unspecified IAE

Reviewed-by: dcherepanov, art
上级 8757b534
...@@ -3873,6 +3873,11 @@ public abstract class Component implements ImageObserver, MenuContainer, ...@@ -3873,6 +3873,11 @@ public abstract class Component implements ImageObserver, MenuContainer,
* supported or met * supported or met
* @exception ClassCastException if the component is not a canvas or * @exception ClassCastException if the component is not a canvas or
* window. * 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) protected FlipBufferStrategy(int numBuffers, BufferCapabilities caps)
throws AWTException throws AWTException
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册