提交 e25021c4 编写于 作者: S serb

8058136: Test api/java_awt/SplashScreen/index.html\#ClosedSplashScreenTests...

8058136: Test api/java_awt/SplashScreen/index.html\#ClosedSplashScreenTests fails because of java.lang.IllegalStateException was not thrown
Reviewed-by: azvegint, anthony
上级 89f5eeb6
...@@ -293,6 +293,7 @@ public final class SplashScreen { ...@@ -293,6 +293,7 @@ public final class SplashScreen {
*/ */
public Graphics2D createGraphics() throws IllegalStateException { public Graphics2D createGraphics() throws IllegalStateException {
synchronized (SplashScreen.class) { synchronized (SplashScreen.class) {
checkVisible();
if (image==null) { if (image==null) {
// get unscaled splash image size // get unscaled splash image size
Dimension dim = _getBounds(splashPtr).getSize(); Dimension dim = _getBounds(splashPtr).getSize();
...@@ -419,4 +420,4 @@ public final class SplashScreen { ...@@ -419,4 +420,4 @@ public final class SplashScreen {
private native static boolean _setImageData(long SplashPtr, byte[] data); private native static boolean _setImageData(long SplashPtr, byte[] data);
private native static float _getScaleFactor(long SplashPtr); private native static float _getScaleFactor(long SplashPtr);
}; }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册