8058136: Test api/java_awt/SplashScreen/index.html\#ClosedSplashScreenTests fails because of java.lang.IllegalStateException was not thrown
Reviewed-by: azvegint, anthony
--- a/jdk/src/java.desktop/share/classes/java/awt/SplashScreen.java Mon Sep 15 17:27:15 2014 +0400
+++ b/jdk/src/java.desktop/share/classes/java/awt/SplashScreen.java Mon Sep 15 17:29:43 2014 +0400
@@ -293,6 +293,7 @@
*/
public Graphics2D createGraphics() throws IllegalStateException {
synchronized (SplashScreen.class) {
+ checkVisible();
if (image==null) {
// get unscaled splash image size
Dimension dim = _getBounds(splashPtr).getSize();
@@ -419,4 +420,4 @@
private native static boolean _setImageData(long SplashPtr, byte[] data);
private native static float _getScaleFactor(long SplashPtr);
-};
+}